From 3eac0b4650d78bf951e8fd01f30f14669cf2df1d Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Wed, 14 Oct 2015 04:58:26 +0000 Subject: [PATCH] #919: OSX doesn't need the posix display source, make it optional git-svn-id: https://xpra.org/svn/Xpra/trunk@10833 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/platform/gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xpra/platform/gui.py b/src/xpra/platform/gui.py index 95f08252d9..56984885fa 100755 --- a/src/xpra/platform/gui.py +++ b/src/xpra/platform/gui.py @@ -209,7 +209,10 @@ def main(): #naughty, but how else can I hook this up? import os if os.name=="posix": - from xpra.x11.bindings import posix_display_source #@UnusedImport + try: + from xpra.x11.bindings import posix_display_source #@UnusedImport + except: + pass #maybe running on OSX? hope for the best.. i = get_info() for k in sorted(i.keys()): v = i[k]