[nautilus] desktop: initialize Exempi in main()
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] desktop: initialize Exempi in main()
- Date: Mon, 7 Aug 2017 10:51:54 +0000 (UTC)
commit 10e840d2231e21c8419dd01d5fbc652c72c51767
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]