From c3f952ee2658a016a4146c9f6f056d8fe9994b04 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Wed, 12 Nov 2014 21:34:43 -0600 Subject: [PATCH] Check SaveOnExit key before logout from actions plugin This (hopefully) fixes https://bugzilla.xfce.org/show_bug.cgi?id=7930 --- plugins/actions/actions.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/actions/actions.c b/plugins/actions/actions.c index 4a5dde4..5700b1e 100644 --- a/plugins/actions/actions.c +++ b/plugins/actions/actions.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -796,12 +797,16 @@ actions_plugin_action_dbus_xfsm (const gchar *method, { DBusGConnection *conn; DBusGProxy *proxy; + XfconfChannel *channel; gboolean retval = FALSE; conn = dbus_g_bus_get (DBUS_BUS_SESSION, error); if (conn == NULL) return FALSE; +if (xfconf_channel_get_bool (channel, "/general/SaveOnExit", FALSE)) + allow_save = FALSE; + proxy = actions_plugin_action_dbus_proxy_session (conn); if (G_LIKELY (proxy != NULL)) { -- 2.1.3