From a1eb41460fbfb7c74b8be9f3fd66ae992920a920 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 10 Jul 2019 21:16:18 +0200 Subject: [PATCH] xfsettingsd: Start with the highest priority Start the settings daemon with the highest priority, so it gets started first, because all other components depend on the settings applied by xfsettingsd and applying those after the other components have started is very expensive, clients have to reconfigure themselves, reload fonts, themes, reload configuration, etc. If we load the settings first, the other applications do not need all that reconfiguration and therefore we end up starting the whole session faster. Signed-off-by: Olivier Fourdan --- xfsettingsd/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfsettingsd/main.c b/xfsettingsd/main.c index 692f18d4..3d95fdd4 100644 --- a/xfsettingsd/main.c +++ b/xfsettingsd/main.c @@ -130,7 +130,7 @@ on_name_acquired (GDBusConnection *connection, s_data->sm_client = xfce_sm_client_get (); xfce_sm_client_set_restart_style (s_data->sm_client, XFCE_SM_CLIENT_RESTART_IMMEDIATELY); xfce_sm_client_set_desktop_file (s_data->sm_client, XFSETTINGS_DESKTOP_FILE); - xfce_sm_client_set_priority (s_data->sm_client, 20); + xfce_sm_client_set_priority (s_data->sm_client, XFCE_SM_CLIENT_PRIORITY_HIGHEST); g_signal_connect (G_OBJECT (s_data->sm_client), "quit", G_CALLBACK (gtk_main_quit), NULL); if (!xfce_sm_client_connect (s_data->sm_client, &error) && error) { -- 2.21.0