Xpra: Ticket #2272: shadow: start-on-last-client-exit does not execute when exit-with-client is set

With:

Xpra-Client-Python3-x86_64_2.5-r22135\xpra_cmd" shadow ssh://user@ip/0  --clipboard=no --opengl=no --desktop-scaling=0.75 --webcam=no --speaker=off --microphone=off

commands

start-on-last-client-exit=bash -c 'touch /run/user/1000/xpra-test`date +%s`'
start-on-last-client-exit=bash -c '`date`'
start-on-last-client-exit=bash -c '. /run/user/1000/dbus-session; gnome-screensaver-command -l'

are not executed, because, implicitly exit-with-client=yes is set (xpra-client remotely starting xpra-server)


Fix the code so that, start-on(-last)-client-exit=command is always executed, even if the server will be terminated through any means.

ticket:2128#comment:4 onwards.



Mon, 15 Apr 2019 11:15:43 GMT - Antoine Martin: status, description changed


Tue, 23 Apr 2019 11:45:43 GMT - Antoine Martin: owner, status changed

Fixed in r22523.

If you can confirm that the fix works, this could be backported to v2.5.x


Fri, 17 May 2019 07:53:16 GMT - stdedos:

Replying to Antoine Martin:

Fixed in r22523.

If you can confirm that the fix works, this could be backported to v2.5.x

I verify that the code is working, and for a long time.

It should be safe for backport.


Fri, 17 May 2019 07:55:00 GMT - Antoine Martin: status changed; resolution set

Thanks, backport in r22735.


Sat, 23 Jan 2021 05:46:46 GMT - migration script:

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