Xpra: Ticket #2057: start command on last client exit

Useful for #1991 and others.



Thu, 22 Nov 2018 12:12:49 GMT - Antoine Martin: status changed; resolution set

Done in r21068.


Tue, 29 Jan 2019 03:41:37 GMT - Antoine Martin:

Note: as per #2128, this is a local command which cannot be used when starting a remote server.


Wed, 20 Mar 2019 12:21:54 GMT - stdedos:

Can I somehow enforce

$ cat /etc/xpra/conf.d/80_lock.conf
# Lock Shadow server once "alone"
start-on-last-client-exit=bash -c '. /run/user/1000/dbus-session; gnome-screensaver-command -l'

only on shadow commands? Now every client exiting locks my screen (which is not "that bad", but could be avoided maybe)

I know that you've said in a ticket that xpra should be smart enough about DBUS sessions, DISPLAYs and all that, but, until I see it working, I'd prefer to play safe and load the dbus-session


Wed, 20 Mar 2019 13:56:21 GMT - Antoine Martin:

only on shadow commands?

Please create a new ticket for this feature. We could expose the session-type somewhere then you could script it.


Wed, 20 Mar 2019 14:07:41 GMT - stdedos:

Created #2229


Sat, 23 Jan 2021 05:41:02 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2057