projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab87516
)
Fix issue if display is not end with .x
author
Huang Peng
<shawn.p.huang@gmail.com>
Fri, 4 Jul 2008 03:08:27 +0000
(11:08 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Fri, 4 Jul 2008 03:08:27 +0000
(11:08 +0800)
ibus/common.py
patch
|
blob
|
history
diff --git
a/ibus/common.py
b/ibus/common.py
index
58d3ef6
..
c3fd3d6
100644
(file)
--- a/
ibus/common.py
+++ b/
ibus/common.py
@@
-37,7
+37,11
@@
import os
import sys
import getpass
-IBUS_ADDR = "unix:path=/tmp/ibus-%s/ibus-%s" % (getpass.getuser (), os.environ["DISPLAY"].replace (":", "-"))
+display = os.environ["DISPLAY"]
+if "." not in display:
+ display += ".0"
+
+IBUS_ADDR = "unix:path=/tmp/ibus-%s/ibus-%s" % (getpass.getuser (), display.replace (":", "-"))
# IBUS_ADDR = "tcp:host=localhost,port=7799"
IBUS_IFACE = "org.freedesktop.IBus"