xpra icon
Bug tracker and wiki

Opened 7 months ago

Closed 7 months ago

Last modified 3 months ago

#2057 closed enhancement (fixed)

start command on last client exit

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: minor Milestone: 2.5
Component: server Version: 2.4.x
Keywords: Cc:

Description

Useful for #1991 and others.

Change History (5)

comment:1 Changed 7 months ago by Antoine Martin

Resolution: fixed
Status: newclosed

Done in r21068.

comment:2 Changed 5 months ago by Antoine Martin

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

comment:3 Changed 3 months ago by 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

comment:4 Changed 3 months ago by 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.

comment:5 Changed 3 months ago by stdedos

Created #2229

Note: See TracTickets for help on using tickets.