diff options
author | pnfisher <pnfisher> | 1999-09-25 02:50:36 +0000 |
---|---|---|
committer | pnfisher <pnfisher> | 1999-09-25 02:50:36 +0000 |
commit | d18f1bd98817564facc0a83d4aa39143f13d2ba8 (patch) | |
tree | 63df96caa4764ffbc637366ee828b344b62f1704 | |
parent | a52ddd9b7f932004a8fcb8c88ad768baac082ada (diff) | |
download | anaconda-d18f1bd98817564facc0a83d4aa39143f13d2ba8.tar.gz anaconda-d18f1bd98817564facc0a83d4aa39143f13d2ba8.tar.xz anaconda-d18f1bd98817564facc0a83d4aa39143f13d2ba8.zip |
Make go -- without memory corruption (we call setxkbmap).
-rw-r--r-- | xkb.py | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -1,6 +1,7 @@ import _xkb import tree import string +import os class XKB: def __init__ (self): @@ -31,8 +32,27 @@ class XKB: if variant == None: variant = "" if options == None: options = "" + args = () + + if (model): + args = args + ("-model", model) + if (layout): + args = args + ("-layout", layout) + if (variant): + args = args + ("-variant", variant) + + path = ("/usr/X11R6/bin/setxkbmap",) + if (os.fork () == 0): + os.execv (path[0], path + args) + + return + + # don't use any of our code, since it seems to corrupt + # lots of memory return _xkb.set_rule (model, layout, variant, options) + + def getRulesBase (self): return _xkb.get_rulesbase () |