summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@gnome.org>2017-07-23 15:17:05 +0300
committerErnestas Kulik <ernestask@gnome.org>2017-08-07 13:51:33 +0300
commit10e840d2231e21c8419dd01d5fbc652c72c51767 (patch)
treeaa064e2d03513c6b8c449d5ef63b22b5e6faf45b
parentd1876bd6fb7a5e62be0f6f8b5baf743024cfd1c7 (diff)
downloadnautilus-10e840d2231e21c8419dd01d5fbc652c72c51767.tar.gz
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
-rw-r--r--nautilus-desktop/main-desktop.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nautilus-desktop/main-desktop.c b/nautilus-desktop/main-desktop.c
index 57abeae8a..23cfb3e4c 100644
--- a/nautilus-desktop/main-desktop.c
+++ b/nautilus-desktop/main-desktop.c
@@ -13,6 +13,10 @@
#include <string.h>
#include <unistd.h>
+#ifdef HAVE_EXEMPI
+#include <exempi/xmp.h>
+#endif
+
int
main (int argc,
char *argv[])
@@ -27,6 +31,10 @@ main (int argc,
g_set_prgname ("nautilus-desktop");
+#ifdef HAVE_EXEMPI
+ xmp_init ();
+#endif
+
gdk_set_allowed_backends ("x11");
nautilus_register_resource ();