commit 4b0e59f71fb4c221b7856cfd2c39efbf8409379d
parent f4f57a20d90b37005706b1b72bc381c069fc5017
Author: Simos Xenitellis <simos@gnome.org>
Date: Sun, 20 Jun 2010 23:24:32 +0300
Fixed #16: os.spawnl() may fail, using os.system()
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Common.py b/Common.py
@@ -32,7 +32,11 @@ fontstyle = cairo.FONT_SLANT_NORMAL
fontweight = cairo.FONT_WEIGHT_NORMAL
fontsize = 12
-gucharmappath = "/usr/bin/gucharmap"
+# You need to have gucharmap installed.
+# It might be possible to perform drag n drop from the KDE equivalent,
+# though I did not get any confirmation on this yet.
+# We now perform a 'os.system()' on the following string.
+gucharmappath = "gucharmap"
# The Xkeyboard-Config path
xkcpath = "/usr/share/X11/xkb"
diff --git a/KeyboardLayoutEditor b/KeyboardLayoutEditor
@@ -948,7 +948,7 @@ Please do not put punctuation marks."
return False
def unicodechars_clicked_callback(self, button):
- os.spawnl(os.P_NOWAIT, Common.gucharmappath)
+ os.system(Common.gucharmapapp)
def check_resize(self, container):
pass # TODO: Make sure the keyboard does not get too small.