mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[PVFB] Set keyboard layout of PVFB from configuration file.
For example: keymap = "ja" Default remains en-us. Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com> Signed-off-by: Tomohiro Takahashi <takatom@tokyo.ssg.fujitsu.com> Signed-off-by: Masami Watanabe <masami.watanabe@jp.fujitsu.com>
This commit is contained in:
1 parent
a7e0434e12
commit
11f063545a
2 files changed
+6
-1
No files matched your search
@@ -14,7 +14,7 @@ def spawn_detached(path, args, env):
|
||||
os.waitpid(p, 0)
|
||||
|
||||
CONFIG_ENTRIES = ['type', 'vncdisplay', 'vnclisten', 'vncpasswd', 'vncunused',
|
||||
'display', 'xauthority']
|
||||
'display', 'xauthority', 'keymap' ]
|
||||
|
||||
class VfbifController(DevController):
|
||||
"""Virtual frame buffer controller. Handles all vfb devices for a domain.
|
||||
@@ -68,6 +68,8 @@ class VfbifController(DevController):
|
||||
vnclisten = config.get("vnclisten",
|
||||
xen.xend.XendOptions.instance().get_vnclisten_address())
|
||||
args += [ "--listen", vnclisten ]
|
||||
if config.has_key("keymap"):
|
||||
args += ["-k", "%s" % config["keymap"]]
|
||||
spawn_detached(args[0], args + std_args, os.environ)
|
||||
elif t == "sdl":
|
||||
args = [xen.util.auxbin.pathTo("xen-sdlfb")]
|
||||
|
||||
@@ -594,6 +594,9 @@ def configure_vfbs(config_devs, vals):
|
||||
'xauthority', 'type', 'vncpasswd' ]:
|
||||
err("configuration option %s unknown to vfbs" % k)
|
||||
config.append([k,v])
|
||||
for n in iter(dir(vals)):
|
||||
if n == "keymap":
|
||||
config.append(['keymap',vals.keymap])
|
||||
if not d.has_key("display") and os.environ.has_key("DISPLAY"):
|
||||
config.append(["display", os.environ['DISPLAY']])
|
||||
if not d.has_key("xauthority"):
|
||||
|
||||