Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1805  / 2 Years ago, sun, december 12, 2021, 4:25:01

I am using Xubuntu 12.04 with the xfce 4.10 ppa, and since updating xfce I can not disable the automatic session restore.



I have disabled the relevant options in 'Session and Startup', but it makes no differences and all my windows are still restored after login.



If I remove the content of .cache/sessions it works for the next reboot but after that the session will be restored again.



I thought about writing a script to delete it at startup, but I was wondering if there were any proper fixes to this issue.



Thanks,


More From » xubuntu

 Answers
0

Since there are no other suggestions, here is a quick fix for anyone who comes across this thread :



emacs _path_/startup.sh


write in the file



#!/bin/bash

rm -rf /home/_name_/.cache/sessions/*


make it executable



chmod +x _path_/startup.sh


go under 'Session and Startup' and add _path_/startup.sh to the applications automatically executed when xfce opens.


[#26617] Sunday, December 12, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cugure

Total Points: 188
Total Questions: 110
Total Answers: 103

Location: Dominican Republic
Member since Sun, Sep 4, 2022
2 Years ago
;