Xpra: Ticket #2536: forcing wayland without a wayland display segfaults

This is a feature of GTK: segfault when no X11 is available / DISPLAY="".

The gdb backtrace looks like this:

Traceback (most recent call first):
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_tray_menu_base.py", line 327, in setup_menu
    menu = Gtk.Menu()
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_tray_menu_base.py", line 306, in build
    self.menu = self.setup_menu(SHOW_CLOSE)
  File "/usr/lib64/python3.7/site-packages/xpra/client/mixins/tray.py", line 110, in create_xpra_tray
    menu = self.menu_helper.build()
  File "/usr/lib64/python3.7/site-packages/xpra/client/mixins/tray.py", line 49, in setup_xpra_tray
    tray = self.create_xpra_tray(self.tray_icon or "xpra")
  File "/usr/lib64/python3.7/site-packages/gi/overrides/Gtk.py", line 1630, in main
    return _Gtk_main(*args, **kwargs)
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_client_base.py", line 141, in gtk_main
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_client_base.py", line 135, in run
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 1735, in do_run_client
    return app.run()
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 1406, in run_client
    return do_run_client(app)
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 447, in run_mode
    return run_client(error_cb, options, args, mode)
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 115, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/usr/bin/xpra", line 26, in <module>
    sys.exit(main(sys.argv[0], sys.argv))

Tue, 31 Dec 2019 13:07:28 GMT - Antoine Martin: status changed; resolution set

Not much we can do about this.

This needs to be fixed in GTK.

Sat, 23 Jan 2021 05:53:56 GMT - migration script:

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