You are not logged in.

#1 2010-10-17 16:51:54

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

How to change the order of closing programs during shutdown?

Every time I start the computer I have certain apps like Docky, Screenlets, etc, that start automatically when I log into my desktop (Gnome).

When I shutdown, one of the first things to go is Compiz, which i'd want terminated last. When it is terminated (first) compositing is lost so widgets suddenly appear on the desktop, and Docky loses it's transparency so there is an ugly black box around it just before shutdown.

It'd be more aesthetically pleasing if, for example, Screenlets and Docky were terminated first, followed by the panels, and Compiz last.

How would one control the order in which default apps load at startup and the order in which they are terminated during shutdown (or logoff)?


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-10-17 17:18:27

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: How to change the order of closing programs during shutdown?

That's the responsibility of your DE. AFAIK, most just issue 'kill' signals to all apps they've started. You could possibly script the behaviour you want, though.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-10-17 17:38:55

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: How to change the order of closing programs during shutdown?

Possibly /etc/rc.local.shutdown may help.

Last edited by skottish (2010-10-17 17:39:08)

Offline

#4 2010-10-17 23:08:39

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: How to change the order of closing programs during shutdown?

skottish wrote:

Possibly /etc/rc.local.shutdown may help.

Doesn't that not control programs autostarted by the DE (rather than by /etc/rc.conf list).


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2010-10-17 23:16:38

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: How to change the order of closing programs during shutdown?

ngoonee wrote:
skottish wrote:

Possibly /etc/rc.local.shutdown may help.

Doesn't that not control programs autostarted by the DE (rather than by /etc/rc.conf list).

That makes sense. I now understand what you said before.

Last edited by skottish (2010-10-17 23:18:15)

Offline

#6 2010-10-17 23:29:32

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: How to change the order of closing programs during shutdown?

Write your own logout script that calls gnome's logout program after it is done.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#7 2010-10-18 01:41:55

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: How to change the order of closing programs during shutdown?

Stebalien wrote:

Write your own logout script that calls gnome's logout program after it is done.

This seems best. And once you've done that post it up smile. I've never gone looking for exactly what script Gnome calls on logout/shutdown, would be interesting to know.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2010-10-18 01:52:54

Stebalien
Member
Registered: 2010-04-27
Posts: 1,237
Website

Re: How to change the order of closing programs during shutdown?

This should do it (I don't use gnome anymore so I don't know for sure):

gnome-session-save --kill

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C
Do not email: honeypot@stebalien.com

Offline

#9 2010-10-25 03:22:17

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: How to change the order of closing programs during shutdown?

I just had the chance to check this. I'll try it and see what i can find.


joe@trusktr.io - joe at true skater dot io.

Offline

Board footer

Powered by FluxBB