[Xfce4-commits] <midori:master> Check for libnotify.so.1 and libenchant.so.1 explicitly
Christian Dywan
noreply at xfce.org
Mon Dec 14 19:54:02 CET 2009
Updating branch refs/heads/master
to e04a078de4ddc569613d8eaf0f54cc4988296687 (commit)
from c9da1beb1c202592051e315a039269a9255a9ea6 (commit)
commit e04a078de4ddc569613d8eaf0f54cc4988296687
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Dec 14 18:54:32 2009 +0100
Check for libnotify.so.1 and libenchant.so.1 explicitly
Some distributions only install versioned libraries by default
while the generic files reside in development packages. This is
because later versions may break ABI, so we explicitly use
the supported version.
midori/midori-app.c | 8 +-------
midori/midori-preferences.c | 2 +-
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/midori/midori-app.c b/midori/midori-app.c
index b981c25..c354c91 100644
--- a/midori/midori-app.c
+++ b/midori/midori-app.c
@@ -1150,13 +1150,7 @@ static void
midori_app_init_libnotify (MidoriApp* app)
{
#if !HAVE_HILDON
- gint i;
- const gchar* sonames[] = { "libnotify.so", "libnotify.so.1", NULL };
-
- for (i = 0; sonames[i] != NULL && app->libnotify_module == NULL; i++ )
- {
- app->libnotify_module = g_module_open (sonames[i], G_MODULE_BIND_LOCAL);
- }
+ app->libnotify_module = g_module_open ("libnotify.so.1", G_MODULE_BIND_LOCAL);
if (app->libnotify_module != NULL)
{
diff --git a/midori/midori-preferences.c b/midori/midori-preferences.c
index c818f9d..2236e1b 100644
--- a/midori/midori-preferences.c
+++ b/midori/midori-preferences.c
@@ -242,7 +242,7 @@ midori_preferences_get_spell_languages (void)
if (!enchant_broker_list_dicts && g_module_supported ())
{
GModule* module;
- if (!(module = g_module_open ("libenchant.so", G_MODULE_BIND_LOCAL)))
+ if (!(module = g_module_open ("libenchant.so.1", G_MODULE_BIND_LOCAL)))
return NULL;
if (!g_module_symbol (module, "enchant_broker_init",
(void*) &enchant_broker_init))
More information about the Xfce4-commits
mailing list