From 0b2176a539338466dda802b06fcd7589d51ceef5 Mon Sep 17 00:00:00 2001 From: tangjie02 Date: Thu, 7 May 2020 00:06:50 +0800 Subject: [PATCH 3/3] fix(libegg): caja not register for root in MATE desktop before session manager timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修复caja在root登录时未向mate-session-manager进行注册导致mate-session-manager长时间等待(30秒)的问题 Signed-off-by: tangjie02 --- libegg/eggsmclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libegg/eggsmclient.c b/libegg/eggsmclient.c index 3113e6b..f8c35e1 100644 --- a/libegg/eggsmclient.c +++ b/libegg/eggsmclient.c @@ -368,7 +368,7 @@ egg_sm_client_get (void) as egg_sm_client_set_mode must be called prior to start of main loop to stop caja restart but this is diffcult in GtkApplication */ - if (geteuid () == 0 || !(running_in_mate () || running_in_kiran ())){ + if (!(running_in_mate () || running_in_kiran ())){ global_client = g_object_new (EGG_TYPE_SM_CLIENT, NULL); } } -- 2.33.0