Originally Posted by taylorkh
I wish to setup a user so that when they logout with programs running and windows open and sized and located as desired and then they login they will have the same programs running, windows sized and located. The machine is running Ubuntu Mate 15.04. I can not find anything under Preferences. It may be in dconf-editor but I have not found the setting. Can anyone point me to the config change I need to make?
Maybe this link will help you.
Personally I suspend my PC rather than shutting down. When suspended it only uses very little power and I always have everything open like I left it. To do this automatically after x minutes of inactivity, I installed xscreenserver and run the script below in a cronjob every minute, which checks whether the screensaver is active.
SCREENSAVER_ACTIVE=$(xscreensaver-command -time 2>/dev/null|grep -E "\ blanked" >/dev/null;echo $?)
if [ $SCREENSAVER_ACTIVE -eq 0 ];then