aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard-x11.c4
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)
{