Skip to content

Instantly share code, notes, and snippets.

@niklaskeerl
Created February 20, 2020 08:17
Show Gist options
  • Save niklaskeerl/a949f24dbb1119a70e439b1187e9cb20 to your computer and use it in GitHub Desktop.
Save niklaskeerl/a949f24dbb1119a70e439b1187e9cb20 to your computer and use it in GitHub Desktop.
XFCE disable session-saving feature

Delete existing sessions:

rm -rf ~/.cache/sessions/

Make directory read-only:

chmod -w ~/.cache/sessions/

You can reenable session-saving by granting the write right on the directory again:

chmod +w ~/.cache/sessions/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment