Xfce Forum

Sub domains
 

You are not logged in.

#1 2015-08-30 21:40:18

blackdisk
Member
Registered: 2006-03-30
Posts: 28

Is there an easy way to gracefully shut down programs at logout?

I have two problem applications that get stuck after logging out of xfce, zim and flux gui (f.lux) . They get killed at logout and leave temp pipes behind that prevent them from starting up after the next log in. Zim works after the 2nd attempt, but f.lux leaves xflux running stuck at 100% cpu usage, which needs to be killed and a temp file deleted for it to start, again. This is on Debian 8.

Offline

#2 2015-08-30 22:46:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,000

Re: Is there an easy way to gracefully shut down programs at logout?

xfce4-session currently doesn't have the capability to run scripts on logout. See:
- https://bugzilla.xfce.org/show_bug.cgi?id=12095
- https://bugzilla.xfce.org/show_bug.cgi?id=10172

Assuming that both of these programs have a means of "gracefully" exiting via a command, the following might help.

Create an executable /usr/local/bin/xfce4-session file with the following contents:

#!/bin/bash

# run the real xfce4-session executable
/usr/bin/xfce4-session

# after it exits, run the scripts in ~/.xfce_logout (if it exists)
test -r $HOME/.logout && . $HOME/.xfce_logout

Then, add whatever commands you need to run to gracefully exit from these programs in your ~/.xfce_logout file.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2015-09-14 22:33:38

blackdisk
Member
Registered: 2006-03-30
Posts: 28

Re: Is there an easy way to gracefully shut down programs at logout?

Thanks for the suggestion but there was no way around it. The applications could not end gracefully through command. I guess they have some gnome-centric schemes to do this.

Offline

Board footer

Powered by FluxBB