stopping cinnamon-started apps at logout

Ed Greshko ed.greshko at greshko.com
Sun May 11 22:58:39 UTC 2014


On 05/12/14 06:42, Wolfgang S. Rupprecht wrote:
> Ed Greshko <ed.greshko at greshko.com> writes:
>> In your .bash_logout file you could place a "killall" statement and
>> name the process you want to kill off.  See the killall man page.
> Are you seeing .bash_logout called when you exit a desktop session?  I
> don't, but then our setups might differ a bit. (I'm using f20
> w. cinnamon)

Humm....  It has been a *long* time since I've tried that.   I could swear the last time I had it working....

> As an aside, doing it cleanly from .bash_logout would be a bit tricky
> because I wouldn't want it run when any ssh or tty based logout
> happened, only when the logout was from the GUI session that started the
> apps.

I was thinking of checking for the existence of a "DISPLAY" environment variable to avoid that. 

But, if .bash_logout isn't effective on GUI logout my idea is worthless.


-- 
Do not condemn the judgment of another because it differs from your own. You may both be wrong. -- Dandemis


More information about the users mailing list