Skip to content

Commit

Permalink
avoid fatal client error if xpra-x11 is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Nov 15, 2023
1 parent acd6516 commit 5c13146
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xpra/platform/posix/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())


Expand Down

0 comments on commit 5c13146

Please sign in to comment.