From b55a96b30c51508a059bd8cd2ab013beaa9ceca1 Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Wed, 6 Mar 2013 15:12:35 -0800 Subject: [PATCH] Fix crasher bug by initializing elementary After updating webkit-efl, this app started to segfault in elm_config_mirrored_get(). By calling elm_init() at the start of the app then we no longer see this crash. --- Makefile | 2 +- packaging/webskeleton.spec | 1 + webskeleton.c | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 44c80b8..ab36e11 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ webskeleton: webskeleton.c - gcc -o webskeleton webskeleton.c `pkg-config --cflags --libs ecore ecore-evas evas eina ewebkit2` + gcc -o webskeleton webskeleton.c `pkg-config --cflags --libs ecore ecore-evas evas eina ewebkit2 elementary` install: webskeleton mkdir -p ${DESTDIR}/usr/bin diff --git a/packaging/webskeleton.spec b/packaging/webskeleton.spec index 2a86a56..463028a 100644 --- a/packaging/webskeleton.spec +++ b/packaging/webskeleton.spec @@ -13,6 +13,7 @@ BuildRequires: pkgconfig(ecore) BuildRequires: pkgconfig(evas) BuildRequires: pkgconfig(eina) BuildRequires: pkgconfig(ewebkit2) +BuildRequires: pkgconfig(elementary) %description Webskeleton application container diff --git a/webskeleton.c b/webskeleton.c index fb3ec96..394edff 100644 --- a/webskeleton.c +++ b/webskeleton.c @@ -208,6 +208,8 @@ int main(int argc, char *argv[]) if (!ecore_evas_init()) return EXIT_FAILURE; + if (!elm_init()) + return EXIT_FAILURE; static struct option options[] = { { "help", no_argument, NULL, 'h' }, -- 2.7.4