Skip to content

Commit

Permalink
doh: win32 and osx are not supported as x11 - check that first
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@21811 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 22, 2019
1 parent 31528dc commit fc05092
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/xpra/os_util.py
Expand Up @@ -271,13 +271,12 @@ def uupdate(ustr):


def is_X11():
if PYTHON2:
return True
if OSX or WIN32:
return False
if PYTHON2:
return True
from xpra.x11.gtk3.gdk_bindings import is_X11_Display #@UnresolvedImport
x11 = is_X11_Display()
return x11
return is_X11_Display()

def is_Wayland():
return os.environ.get("WAYLAND_DISPLAY") or os.environ.get("XDG_SESSION_TYPE")=="wayland"
Expand Down

0 comments on commit fc05092

Please sign in to comment.