From e0089c4226251266c23a21da8d16e7bde7524bf8 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 20 Sep 2021 12:11:06 +0200 Subject: src/service.c: Fix Lomiri detection --- src/service.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/service.c b/src/service.c index ac94f0b5..bcc1841c 100644 --- a/src/service.c +++ b/src/service.c @@ -406,11 +406,8 @@ static void onDispose(GObject *pObject) static void indicator_keyboard_service_init(IndicatorKeyboardService *self) { gchar *sLib = "libayatana-keyboard-x11.so"; - GFile *pFile = g_file_new_for_path("/usr/lib/maliit/plugins/liblomiri-keyboard-plugin.so"); - gboolean bExists = g_file_query_exists(pFile, NULL); - g_object_unref(pFile); - if (bExists) + if (ayatana_common_utils_is_lomiri()) { sLib = "libayatana-keyboard-lomiri.so"; } -- cgit v1.2.3