From 5c131462755e004d74126e06db0dd3cd9555fe1a Mon Sep 17 00:00:00 2001 From: totaam Date: Wed, 15 Nov 2023 12:58:23 +0700 Subject: [PATCH] avoid fatal client error if xpra-x11 is not installed --- xpra/platform/posix/gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xpra/platform/posix/gui.py b/xpra/platform/posix/gui.py index 1a21eb496b..69f874249e 100644 --- a/xpra/platform/posix/gui.py +++ b/xpra/platform/posix/gui.py @@ -168,7 +168,10 @@ def _get_xsettings(): return None def _get_xsettings_dict(): - from xpra.x11.common import xsettings_to_dict + try: + from xpra.x11.common import xsettings_to_dict + except ImportError: + return {} return xsettings_to_dict(_get_xsettings())