diff options
author | Robert Tari <robert@tari.in> | 2023-11-01 10:49:03 +0100 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2023-11-01 10:49:03 +0100 |
commit | 465d686a86fa2c1eacf2bca5390399ca88a94560 (patch) | |
tree | 7ac36679f2168d2b1732930d3925ff10c4977f80 | |
parent | d1091356f9ea2b812b4ee7ac5a09dab3947fe54c (diff) | |
download | ayatana-indicator-keyboard-465d686a86fa2c1eacf2bca5390399ca88a94560.tar.gz ayatana-indicator-keyboard-465d686a86fa2c1eacf2bca5390399ca88a94560.tar.bz2 ayatana-indicator-keyboard-465d686a86fa2c1eacf2bca5390399ca88a94560.zip |
src/keyboard-x11.c: Skip AccountsService operations for all prefixed users
-rw-r--r-- | src/keyboard-x11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard-x11.c b/src/keyboard-x11.c index 141a23ee..c1b256a2 100644 --- a/src/keyboard-x11.c +++ b/src/keyboard-x11.c @@ -139,9 +139,9 @@ static void getAccountsService(Keyboard *pKeyboard, ActUser *pUser) g_variant_get (pUser, "(s)", &pKeyboard->pPrivate->sUser); } - gboolean bGuest = g_str_equal (pKeyboard->pPrivate->sUser, "*guest"); + gboolean bPrefix = g_str_has_prefix (pKeyboard->pPrivate->sUser, "*"); - if (bGuest) + if (bPrefix) { if (pKeyboard->pPrivate->lLayoutRec) { |