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.
This commit is contained in:
parent
c9da1beb1c
commit
e04a078de4
2 changed files with 2 additions and 8 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue