From 0e18b0d2f91888295958daea82003c40d9e91658 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Fri, 19 Jul 2019 14:05:00 +0200 Subject: [PATCH 1/2] xfsettingsd: Start xsettings prior to complete startup (Bug #15725) On startup, different gtk based applications are launched concurently. If we start xsettings simulatenously, those applications fail to detect xsettings and ignore the various preferences set via xsettings (themes, icons, etc.) Make sure we spawn xsettings prior to declare ourself ready with the session manager. Signed-off-by: Olivier Fourdan --- xfsettingsd/main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xfsettingsd/main.c b/xfsettingsd/main.c index dd34c3f0..47c4b90e 100644 --- a/xfsettingsd/main.c +++ b/xfsettingsd/main.c @@ -125,6 +125,11 @@ on_name_acquired (GDBusConnection *connection, s_data = (struct t_data_set*) user_data; + /* launch settings manager */ + s_data->xsettings_helper = g_object_new (XFCE_TYPE_XSETTINGS_HELPER, NULL); + xfce_xsettings_helper_register (XFCE_XSETTINGS_HELPER (s_data->xsettings_helper), + gdk_display_get_default (), opt_replace); + /* connect to session always, even if we quit below. this way the * session manager won't wait for us to time out. */ s_data->sm_client = xfce_sm_client_get (); @@ -138,11 +143,6 @@ on_name_acquired (GDBusConnection *connection, g_clear_error (&error); } - /* launch settings manager */ - s_data->xsettings_helper = g_object_new (XFCE_TYPE_XSETTINGS_HELPER, NULL); - xfce_xsettings_helper_register (XFCE_XSETTINGS_HELPER (s_data->xsettings_helper), - gdk_display_get_default (), opt_replace); - /* create the sub daemons */ #ifdef HAVE_XRANDR s_data->displays_helper = g_object_new (XFCE_TYPE_DISPLAYS_HELPER, NULL); -- 2.21.0