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_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)
{
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))