[Xfce4-commits] [xfce/xfce4-panel] 32/73: Don't save the session during unattended shutdown

noreply at xfce.org noreply at xfce.org
Sun Feb 26 16:34:13 CET 2017


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 440060496c620ba90ad0e2ba4209ba032dfd474d
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 23fa3ce..444a077 100644
--- a/plugins/actions/actions.c
+++ b/plugins/actions/actions.c
@@ -932,6 +932,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