How to get process to start with GUI login and exit on GUI logout?

netfab netbox253 at netc.eu
Mon Jan 31 14:01:05 CET 2022


Le 31/01/22 à 13:30, Chris Green a tapoté :
> So, is there an easy/correct way to do this or do I need to add code
> to my background process to manage things?
> 

If your process is written in C, you want to use the session management
library.

	https://www.x.org/releases/X11R7.7/doc/libSM/SMlib.html#Session_Management_Client_Smc_Functions




More information about the Xfce mailing list