diff options
author | xiaoguang wang <xwang@suse.com> | 2018-06-08 14:32:00 +0800 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-06-13 12:38:55 -0400 |
commit | edcc26e5ae5fc09fad2d8e9afda0fea97c395d49 (patch) | |
tree | 2937b48d7488948bac35b29a5f149733cb0ab142 | |
parent | d858553498c3275b473887b928ba8fcb9c42eaf9 (diff) |
lib: treat session type=wayland as graphical session
When user session type is wayland, act_user_is_logged_in can return TRUE
if user is logged in.
https://bugs.freedesktop.org/show_bug.cgi?id=106855
-rw-r--r-- | src/libaccountsservice/act-user-manager.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libaccountsservice/act-user-manager.c b/src/libaccountsservice/act-user-manager.c index ade309c..325421b 100644 --- a/src/libaccountsservice/act-user-manager.c +++ b/src/libaccountsservice/act-user-manager.c @@ -1543,7 +1543,8 @@ _get_x11_display_for_new_systemd_session (ActUserManagerNewSession *new_session) return; } - if (g_strcmp0 (session_type, "x11") != 0) { + if (g_strcmp0 (session_type, "x11") != 0 && + g_strcmp0 (session_type, "wayland") != 0) { g_debug ("ActUserManager: (mostly) ignoring %s session '%s' since it's not graphical", session_type, new_session->id); |