nautilus/nautilus-desktop/main-desktop.c
Ernestas Kulik 10e840d223 desktop: initialize Exempi in main()
Opening the file properties window causes a crash with images that have
embedded XMP information. This is caused by not initializing the library
properly.

https://bugzilla.gnome.org/show_bug.cgi?id=785292
2017-08-07 13:51:33 +03:00

49 lines
967 B
C

#include <config.h>
#include "nautilus-desktop-application.h"
#include <src/nautilus-resources.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_EXEMPI
#include <exempi/xmp.h>
#endif
int
main (int argc,
char *argv[])
{
NautilusDesktopApplication *application;
int retval;
/* Initialize gettext support */
bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
textdomain (GETTEXT_PACKAGE);
g_set_prgname ("nautilus-desktop");
#ifdef HAVE_EXEMPI
xmp_init ();
#endif
gdk_set_allowed_backends ("x11");
nautilus_register_resource ();
application = nautilus_desktop_application_new ();
retval = g_application_run (G_APPLICATION (application),
argc, argv);
g_object_unref (application);
return retval;
}