Skip to content

Commit

Permalink
workaround py2app failure
Browse files Browse the repository at this point in the history
py2app fails with the dreaded 'assert g_type != TYPE_NONE',
hiding the fact that it's gdk-pixbuf that fails to load,
setting DYLD_LIBRARY_PATH doesn't help either.. but this ugly hack does
  • Loading branch information
totaam committed Nov 12, 2023
1 parent 98e986e commit 262cffc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions xpra/client/gtk3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any
# later version. See the file COPYING for details.

from xpra.gtk_common.gtk_util import init_display_source
init_display_source()
try:
from xpra.gtk_common.gtk_util import init_display_source
init_display_source()
except:
# for some strange reason,
# this may fail on MacOS when running py2app
# and we don't care then
pass

0 comments on commit 262cffc

Please sign in to comment.