aboutsummaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2022-01-09 19:13:00 +0100
committerLuca Weiss <luca@z3ntu.xyz>2022-01-09 19:13:01 +0100
commit191d5aeac6e44525f49db010d0613e40041750d0 (patch)
tree948a6304423676b1527dd9534bfb71145efaba4e /src/service.c
parentfb9defb0e0b95c5f6ec85451f286903c4b2fc663 (diff)
downloadayatana-indicator-keyboard-191d5aeac6e44525f49db010d0613e40041750d0.tar.gz
ayatana-indicator-keyboard-191d5aeac6e44525f49db010d0613e40041750d0.tar.bz2
ayatana-indicator-keyboard-191d5aeac6e44525f49db010d0613e40041750d0.zip
Try to dlopen .so.0 instead of .so
Some distributions do not provide a .so symlink in the default package, and in case there are major breaking changes (.so.1) then the code likely needs to get adjusted anyways.
Diffstat (limited to 'src/service.c')
-rw-r--r--src/service.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index 6d1452da..73f61065 100644
--- a/src/service.c
+++ b/src/service.c
@@ -409,11 +409,11 @@ static void onDispose(GObject *pObject)
static void indicator_keyboard_service_init(IndicatorKeyboardService *self)
{
- gchar *sLib = "libayatana-keyboard-x11.so";
+ gchar *sLib = "libayatana-keyboard-x11.so.0";
if (ayatana_common_utils_is_lomiri())
{
- sLib = "libayatana-keyboard-lomiri.so";
+ sLib = "libayatana-keyboard-lomiri.so.0";
}
m_pLibHandle = dlopen(sLib, RTLD_NOW);