You are not logged in.
Pages: 1
I've noticed that something added RunHook=0 to my .config/autostart/xfce4-clipman-plugin-autostart.desktop
I can't find any documentation for RunHook=, is it an XFCE thing?
Offline
Yes. It was introduced into the xfce4-session code to allow applications to run at login, logout, restart, shutdown, suspend, etc. Can be configured at Settings Manager > Session and Startup > Application Startup.
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
Yes. It was introduced into the xfce4-session code to allow applications to run at login, logout, restart, shutdown, suspend, etc. Can be configured at Settings Manager > Session and Startup > Application Startup.
OK. Presumably the Hidden=true/false generates the checkbox, and RunHook=(mysterious integer) generates the login/logout/etc level.
Can one specify multiple levels? If I want something running on logout, than I probably also want it on shutdown/restart -- or is that logic implicit?
Offline
Can one specify multiple levels? If I want something running on logout, than I probably also want it on shutdown/restart -- or is that logic implicit?
Multiple runhooks per entry are not currently supported. Would be a nice enhancement though.
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
frmald wrote:Can one specify multiple levels? If I want something running on logout, than I probably also want it on shutdown/restart -- or is that logic implicit?
Multiple runhooks per entry are not currently supported. Would be a nice enhancement though.
So... I'd have to write three different .desktop entries and enable them separately for logout / shutdown / restart? Or is the shutdown an automatic logout?
You know I was just thinking about this about a week ago (https://forum.xfce.org/viewtopic.php?id=14775) as I'm caching some files (e.g. the firefox profile folder) to RAM on login, and I want them saved back to disk on session-end (not catastrophical if it doesn't happen, but could be unpleasant). For Debian I'm using a systemd user-service, but for MX Linux I'd rather rely on the X11 / session manager startup/shutdown configuration. I've hacked /etc/X11/Xsession.d/99x11-common_start, but XFCE's built-in system would be cleaner.
Offline
Bumping. I have the exact same question - running a program on login/logout/shutdown requires 3 different entries with different runHook settings?.
Thanks
Offline
Yes, it currently does. It would be a nice enhancement to have it respond to just a "session exit" hook (regardless of intent).
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
Pages: 1
[ Generated in 0.013 seconds, 8 queries executed - Memory usage: 541.66 KiB (Peak: 542.94 KiB) ]