[nautilus/gnome-3-24] desktop: initialize Exempi in main()



commit af9f03970523c3e81879a363aa89e81196bbcbc6
Author: Ernestas Kulik <ernestask gnome org>
Date:   Sun Jul 23 15:17:05 2017 +0300

    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

 nautilus-desktop/main-desktop.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/nautilus-desktop/main-desktop.c b/nautilus-desktop/main-desktop.c
index 57abeae..23cfb3e 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 ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]