LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-10-2015, 11:13 AM   #1
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,577

Rep: Reputation: 111Reputation: 111
Restore running programs, open windows etc. after logout login


This is something I had no interest in doing but now I have a situation where I need to. I saw an item while searching for something else which talked about it but of course I can not find it again and I did not read it closely enough nor do I remember where to make the config change. In a nutshell...

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?

TIA,

Ken
 
Old 10-11-2015, 08:21 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 5,802

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
all i know is that xfce4 has this functionality (save session).

you could also replace logout with hibernate or sleep; it's a workaround but the result maybe the same.
 
1 members found this post helpful.
Old 10-11-2015, 09:40 AM   #3
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 16.04 LTS
Posts: 233

Rep: Reputation: 65
Quote:
Originally Posted by taylorkh View Post
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.

http://www.linuxandlife.com/2012/06/...-in-linux.html

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.

Code:
#!/bin/bash
SCREENSAVER_ACTIVE=$(xscreensaver-command -time 2>/dev/null|grep -E "\ blanked" >/dev/null;echo $?)
if [ $SCREENSAVER_ACTIVE -eq 0 ];then
  sudo /usr/sbin/pm-suspend
fi
 
1 members found this post helpful.
Old 10-11-2015, 09:48 AM   #4
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,577

Original Poster
Rep: Reputation: 111Reputation: 111
Thanks ondoho! "save session" was the phrase I was missing in my search. It seems that the feature was ripped out of Ubuntu back about version 11.something. It is not clear if it has been put back in Ubuntu-Mate. The Linuxmint forums talk about a mateconf-editor which allows enabling the feature. However, it was referring to Mint 13 which I think was back in the pre-Ubuntu11.xx days. I do not find mateconf-editor in Ubuntu Mate 15.04. I have also found references to mate-session-save which I do have. I think it would require some programming to incorporate it into the shutdown process.

I generally use suspend on my normal desktop system. The situation where I (thought) I needed the save session feature was an old Netbook which I am recycling as an mp3 player for my shop. I have managed to get it setup without the need to save session. I added Audacity and Caja (pointing to the mp3 archive) to the startup applications list of a dummy account which is set to autlogin. A couple of tweaks to Audacity and it is working great.

Again, thanks for providing me with the key words which I needed to find more information than I wished to read on the subject.

Ken
 
Old 10-11-2015, 09:51 AM   #5
taylorkh
Senior Member
 
Registered: Jul 2006
Location: North Carolina
Distribution: CentOS 6, CentOS 7 (with Mate), Ubuntu 16.04 Mate
Posts: 1,577

Original Poster
Rep: Reputation: 111Reputation: 111
Thanks hortageno,

I was reading about mateconf-editor as you were posting and I was posting my previous note. It appears to be gone these days and I have only dconf-editor which does not have the save session option. As I noted above I have my special application machine working. And I do usually use suspend on my desktop PC.

Ken
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Killed programs re-open upon login giavvns Linux - General 1 04-09-2011 04:05 AM
Cygwin X logout, keep programs running poeta_boy Linux - Newbie 3 03-31-2006 02:52 PM
open with programs running under wine? fibbi Linux - Software 1 05-01-2004 05:05 AM
Choppy sound when other programs running + mouse and login question (tm) Linux - Newbie 6 03-24-2004 09:57 AM
Sound gurus: Keep sound running through logout / login? alar Linux - Software 4 02-05-2004 02:36 PM


All times are GMT -5. The time now is 08:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration