def get_xkb_rules_names_property(self): #parses the "_XKB_RULES_NAMES" X11 property if not is_X11(): return "" xkb_rules_names = "" from xpra.platform.xposix.gui import _get_X11_root_property prop = _get_X11_root_property("_XKB_RULES_NAMES", "STRING") log("get_xkb_rules_names_property() _XKB_RULES_NAMES=%s", prop) #ie: 'evdev\x00pc104\x00gb,us\x00,\x00\x00' if prop: xkb_rules_names = prop.split("\0") #ie: ['evdev', 'pc104', 'gb,us', ',', '', ''] log("get_xkb_rules_names_property()=%s", xkb_rules_names) return xkb_rules_names
def get_xkb_rules_names_property(self): #parses the "_XKB_RULES_NAMES" X11 property #FIXME: a bit ugly to call gtk here... #but otherwise we have to call XGetWindowProperty and deal with X11 errors.. xkb_rules_names = "" from xpra.platform.xposix.gui import _get_X11_root_property prop = _get_X11_root_property("_XKB_RULES_NAMES", "STRING") log("get_xkb_rules_names_property() _XKB_RULES_NAMES=%s", prop) #ie: 'evdev\x00pc104\x00gb,us\x00,\x00\x00' if prop: xkb_rules_names = prop.split("\0") #ie: ['evdev', 'pc104', 'gb,us', ',', '', ''] log("get_xkb_rules_names_property()=%s", xkb_rules_names) return xkb_rules_names
def get_xkb_rules_names_property(self): #parses the "_XKB_RULES_NAMES" X11 property #FIXME: a bit ugly to call gtk here... #but otherwise we have to call XGetWindowProperty and deal with X11 errors.. xkb_rules_names = "" from xpra.platform.xposix.gui import _get_X11_root_property prop = _get_X11_root_property("_XKB_RULES_NAMES", "STRING") log("get_xkb_rules_names_property() _XKB_RULES_NAMES=%s", prop) #ie: 'evdev\x00pc104\x00gb,us\x00,\x00\x00' if prop: xkb_rules_names = prop.split("\0") #ie: ['evdev', 'pc104', 'gb,us', ',', '', ''] log("get_xkb_rules_names_property()=%s", xkb_rules_names) return xkb_rules_names