[Xfce4-commits] [xfce/xfce4-panel] 01/01: Don't save the session during unattended shutdown
noreply at xfce.org
noreply at xfce.org
Wed Nov 19 23:19:48 CET 2014
This is an automated email from the git hooks/post-receive script.
andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.
commit 3e5563e28ff7db52e2f5a468a19f9e1059806b8d
Author: Andrzej <ndrwrdck at gmail.com>
Date: Wed Nov 19 22:19:35 2014 +0000
Don't save the session during unattended shutdown
Previous commit accidentally removed this feature. Bringing it back.
---
plugins/actions/actions.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c
index 1c76c48..cb9fcb1 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -929,6 +929,8 @@ actions_plugin_action_activate (GtkWidget *widget,
channel = xfconf_channel_get ("xfce4-session");
allow_save = xfconf_channel_get_bool (channel, "/general/SaveOnExit", FALSE);
+ /* unattended shutdown, don't save the session to avoid blocking the logout */
+ allow_save = allow_save && !unattended;
switch (entry->type)
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list