Xpra: Ticket #1068: xpra prevents shutdown on osx

If you try to shutdown your computer with xpra connected, the system will complain that xpra blocked the shutdown.

That's because we intercept NSApplicationBlockTermination and return True. I think we should use NSApplicationWillTerminate instead.

See this discussion on the gtk-osx mailing list: https://mail.gnome.org/archives/gtk-osx-users-list/2010-August/msg00027.html.



Wed, 30 Dec 2015 12:47:30 GMT - Antoine Martin: owner changed

Done in r11534. Already backported in r11537.

@afarr: it would be useful to double check that we can now shutdown the computer without getting the warning dialog, and more importantly that we still exit cleanly in all cases: from the menu, using command-Q, using the dock, using shutdown... and anything else related to "quit" which might have regressed.


Wed, 06 Jan 2016 01:00:34 GMT - alas: status changed; resolution set

Testing with 0.17.0 r11535 osx client against a 0.17.0 r11580 fedora 23 server... tried every permutation I could think of to disconnect or shutdown or restart, both launching from CLI and from launcher, with no sign of any problems or errors.

Only detail that was vaguely unexpected is that, when launching with the launcher, the xpra menu lists the option of "quit xpra launcher" instead of "quit xpra"... but I'm assuming you know that.

Closing.


Wed, 06 Jan 2016 03:02:19 GMT - Antoine Martin:

Only detail that was vaguely unexpected is that, when launching with the launcher, the xpra menu lists the option of "quit xpra launcher" instead of "quit xpra"... but I'm assuming you know that.


I'm afraid we can't change this easily without heavily patching the gtkosx integration library..


Wed, 06 Apr 2016 02:58:53 GMT - Antoine Martin:

Note: maybe I am wrong about the name thing, I did see a project that was setting the appname twice: once when starting up and then again via idle_add. It seems that gtk is overriding the value on gtk.main but this may override it again.


Sat, 23 Jan 2021 05:14:03 GMT - migration script:

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