! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Request - Add ability to kill processes at xfce shutdown
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-session
Component:
General

Comments

Description Robby Workman editbugs 2006-10-05 15:00:10 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7
Build Identifier: 

I'm not sure about the correct component, so I elected to place this in "General."
Essentially, what I'm asking for is the ability to do the opposite of the Autostart functionality.  For example, I need gpg-agent to start when xfce starts, but I want it to be killed when xfce closes.  I know this can be done easily by editing $HOME/.xinitrc (and that works fine for now), but it would be nice to have this ability inside xfce.

Reproducible: Always
Comment 1 Nick Schermer editbugs 2010-11-15 23:42:28 CET
Reassign to xfce-bugs@xfce.org.
Comment 2 Robby Workman editbugs 2013-10-30 07:14:44 CET
Created attachment 5214 
Source $HOME/.logout on session exit
Comment 3 Robby Workman editbugs 2014-11-30 22:14:28 CET
For the record, $HOME/.logout isn't the right file to use here, as that's shell-specific; this would need to be xfce-specific. Maybe something in xfce4-session?
Comment 4 kitsunyan 2017-01-17 10:18:15 CET
I have some session scripts and applications in autostart directory which I want to stop when I shutdown my Xfce session. For example Unity does it automatically, but it doesn't work with Xfce on my Arch Linux and Ubuntu 16.04.

It would be nice if xfce4-session stopped all autostarted applications. GUI applications rely on X server connection, but scripts and console applications can't be stopped this way.
Comment 5 Kip 2017-01-17 22:29:27 CET
I'd like to suggest that we generalize this feature further so that processes on a "greylist" detected during a request for shutdown / reboot are killed prior to ending the session. 

A "redlist" could contain processes to look for that should never be automatically killed, but raise a user warning prior to ending the session. The perfect example would be the system package manager. e.g. consider the scenario where the user has automated system updates and their kernel is half way through being unpacked. See bug 13242.
Comment 6 Simon Steinbeiss editbugs 2019-04-27 00:26:04 CEST
This bug is resolved with https://git.xfce.org/xfce/xfce4-session/commit/?id=9e7e160d6db39d39283bef6fafb7264f4a65d9e5

Bug #2382

Reported by:
Robby Workman
Reported on: 2006-10-05
Last modified on: 2019-04-27

People

Assignee:
Xfce Bug Triage
CC List:
6 users

Version

Attachments

Source $HOME/.logout on session exit (720 bytes, patch)
2013-10-30 07:14 CET , Robby Workman
no flags

Additional information