[Xfce4-commits] [xfce/xfce4-settings] 01/01: xfsettingsd: Start with the highest priority (Bug #15697)
noreply at xfce.org
noreply at xfce.org
Thu Jul 11 00:17:25 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-settings.
commit 92ddf97f8e8b976c3aa4483e2a5d1a23078ae84f
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Wed Jul 10 21:16:18 2019 +0200
xfsettingsd: Start with the highest priority (Bug #15697)
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 <fourdan at xfce.org>
---
xfsettingsd/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xfsettingsd/main.c b/xfsettingsd/main.c
index 692f18d..3d95fdd 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)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list