Page 1 of 1

Open applications keep open after restart/relogin.

Posted: Thu Feb 25, 2010 10:59 am
by markov
Hi,

I want my open apps te be open after a restart.

How can I accomplish this??

Marc

--
What's on Shortwave guide: choose an hour, go!
http://shortwave.tk
700+ Radio Stations on SW http://swstations.tk
300+ languages on SW http://radiolanguages.tk

Re: Open applications keep open after restart/relogin.

Posted: Thu Feb 25, 2010 12:47 pm
by Marty Jack
This is not a feature that we offer at this time.

Re: Open applications keep open after restart/relogin.

Posted: Thu Feb 25, 2010 4:43 pm
by markov
Marty Jack wrote:This is not a feature that we offer at this time.
I have tried .xsession, and .Xmodmap, there must be some standard X feature??

I can put a list of apps in it: (but X needs to be active)

winmgr=${XDG_MENU_PREFIX}

case "${winmgr}" in
lxde*)
firefox &
thunderbird &
knode &
konsole &
;;
esac


Marc

Re: Open applications keep open after restart/relogin.

Posted: Thu Feb 25, 2010 6:52 pm
by markov
markov wrote:
Marty Jack wrote:This is not a feature that we offer at this time.
I have tried .xsession, and .Xmodmap, there must be some standard X feature??

I can put a list of apps in it: (but X needs to be active)
I found some stuff:

http://openbox.org/wiki/Help:Autostart
from
http://openbox.org/wiki/Help:Contents

but do not know/understand what to install to autostart some apps...

Marc

Re: Open applications keep open after restart/relogin.

Posted: Thu Feb 25, 2010 7:12 pm
by Marty Jack
See here:

http://forum.lxde.org/viewtopic.php?f=8&t=1354

The basic idea is that /etc/xdg/lxsession/LXDE/autostart is just like .xinit
And do avoid adding the @ signs or else you will not be able to successfully exit these applications.

Re: Open applications keep open after restart/relogin.

Posted: Tue Apr 27, 2010 9:54 am
by mdb
Reopening whatever applications were running in the last session is
different to always automatically starting an application on login.
Are there any plans to incorporate the former feature?

Alternatively, is there any way of using LXDE, or just Openbox, in
combination with something else that will allow this?

I'm using Debian Lenny KDE 3 user looking for an alternative to KDE before
I'm forced to "upgrade" to the dreadful KDE 4 in the next Debian release.
I've been playing with LXDE and I like it a lot.

However, I typically have a lot of windows open across 4 desktops
and I'm used to being able to pick up where I left off on the variety
of tasks associated with them - so this is the only major drawback
I've encountered with LXDE.

(If I use KDE + Openbox, the apps are restored, but all the windows
are opened (even if they were minimized on logout), and they are al
opened in the first desktop. Anyway, KDE is what I'm trying to escape from.)

Re: Open applications keep open after restart/relogin.

Posted: Tue Apr 27, 2010 8:22 pm
by markov035
I added some popular apps to

/etc/xdg/lxsession/LXDE/autostart

And that did the job.

Marc

Re: Open applications keep open after restart/relogin.

Posted: Wed Apr 28, 2010 8:07 am
by mdb
Thanks for your reply, Marc, but while that might work for you,
it's not a solution to the problem as you originally described it,
which is what I am in interested in. As I pointed out above,
Reopening whatever applications were running in the last session is
different to always automatically starting an application on login.
In case it's still not clear:
Say you have 6 editor windows (for example), showing particular files
associated with some task you are working on. The next time you
log in, if those same editor windows are reopened with the same
contents, it saves an awful lot of time - you can immediately pick up
where you left off. This is different to setting up, e.g., a browser
and a mail client to always start automatically: in the problem I am
talking about the applications that need to be started vary from one
login to the next - i.e., whatever was running the last time you
logged out.

So my question above is not for you, but someone like Marty Jack,
who said that this isn't currently a feature of LXDE, but might have
some ideas or information about it.

Re: Open applications keep open after restart/relogin.

Posted: Wed Aug 15, 2012 1:50 am
by FabianoRosas
Not meaning to bring the topic back from the dead, but my question is exactly the same as mdb's:
mdb wrote:Reopening whatever applications were running in the last session
and since it has been 2 years since you left the guy hanging I wonder if any improvement was made on this matter...

And also, I have checked the man entry for lxsession and it states that:
when the user logout, it remembers the applications in use, and restart them the next time you login.
and that's not the behavior on my system. I can never get back to a previous session after logout.

Perhaps I missed something or I'm doing something wrong?



Thanks in advance.