! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Panel action button Logout always save session.
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
Action Buttons

Comments

Description Ed Young 2011-08-27 20:09:40 CEST
I am running xfce on Fedora 14: package xfce4-panel-4.8.5-1.fc14.x86_64

I have specified the following:
    Settings Editor
        xfce4-session
            general
                AutoSave        FALSE
                PromptOnLogout  FALSE   
                SaveOnExit      FALSE

I get the following results for each action of panel - Action Buttons:
    Log Out   - successful, session is not saved
    Shut Down - successful, *** session is saved ***

I really don't want the session saved.  I want to start completely clean
every time.

Work around:
  In the file /etc/gdm/PostLogin/Default have the following lines:

#!/bin/bash
# Default  -  a hack to get rid of XFCE session data
#             this script is located in /etc/gdm/PostLogin
#             chmod 755 Default

rm /home/ejy/.cache/sessions/xfce4-session-* 2>/dev/null
rm /home/ejy/.cache/sessions/xfwm4-*.state 2>/dev/null
echo "/etc/gdm/PostLogin/Default:  slimy hack done."
Comment 1 Jérôme Guelfucci editbugs 2012-12-18 13:44:16 CET
*** Bug 8678 has been marked as a duplicate of this bug. ***
Comment 2 sean-clancy 2013-08-03 09:38:14 CEST
I can confirm this in Fedora 19, xfce4-panel 4.10.1-1.fc19

The plugin should query the value "SaveOnExit" in .config/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml for Shutdown/Restart actions
Comment 3 nucrap 2014-03-23 23:34:21 CET
I confirm this issue on ArchLinux.
This bug has effectively rendered my xfce + compiz setup useless for months. Now finally I discovered that both panel action buttons (Logout and Shutdown) safe the session, even though it's disabled.

PLEASE FIX THIS :/
Comment 5 Liv 2014-03-24 07:26:44 CET
It looks like Bug 10116 is a duplicate.
Comment 6 Johannes Lips 2014-05-19 06:51:54 CEST
I just want to add, that I also experienced this behaviour. I removed the action buttons and now just use the menu to shutdown and the session is not saved any more.
Comment 7 Robby Workman editbugs 2014-11-13 03:06:35 CET
*** Bug 10116 has been marked as a duplicate of this bug. ***
Comment 8 Robby Workman editbugs 2014-11-13 03:15:24 CET
*** Bug 10593 has been marked as a duplicate of this bug. ***
Comment 9 Robby Workman editbugs 2014-11-13 04:51:19 CET
Created attachment 5749 
Untested and ugly

Quick, dirty, untested, and probably very ugly patch - does this make things better or worse?
Comment 10 Andrzej editbugs 2014-11-19 10:39:24 CET
Fixed in 3848b0c0df4c2d744e4a9db2653c0507f78fbba3

More testing needed.
Comment 11 Tigerwolf 2016-02-03 17:29:47 CET
Still not fixed as of 3 Feb 2016 and fresh install and latest updates in Xubuntu 14.04.  Sessions are saved regardless of settings, or whether user logout or action button logout is used.   

Workaround hack I've used for *YEARS* on this issue is to disallow saves by 
chmod 500 .cache/sessions in various user directories.

This needs to be treated as a significant security issue, since it can expose previous activity in guest and multi-user accounts.
Comment 12 Simon Steinbeiss editbugs 2018-05-01 08:42:34 CEST
@Tigerwolf: The fact that your session *always* seems to be saved makes your comment unrelated to this bugreport, which is only about inconsistencies between the session setting and the action buttons.

I tested this explicitly and Andrzejr's patch seems to fix it indeed.

Bug #7930

Reported by:
Ed Young
Reported on: 2011-08-27
Last modified on: 2018-05-01
Duplicates (3):
  • 8678 shutdown button ignores "auto save session" config
  • 10116 Fast exit actions for actions plugin not respecting 'Session and Start up' 'Save Session On Logout' = none.
  • 10593 Session autosaves on logout even if the option is disabled

People

Assignee:
Nick Schermer
CC List:
11 users

Version

Attachments

Untested and ugly (1.21 KB, patch)
2014-11-13 04:51 CET , Robby Workman
no flags

Additional information