xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 2 years ago

Closed 2 years ago

Last modified 4 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 (6)

comment:1 Changed 2 years ago by Antoine Martin

Resolution: fixed
Status: newclosed

Done in r21068.

comment:2 Changed 2 years 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 2 years 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 2 years 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 2 years ago by stdedos

Created #2229

comment:6 Changed 4 months ago by migration script

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

Note: See TracTickets for help on using tickets.