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:
eef1e0f
)
Exit when can not connect to ibus-daemon.
author
Huang Peng
<shawn.p.huang@gmail.com>
Tue, 5 Aug 2008 23:13:20 +0000
(07:13 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Tue, 5 Aug 2008 23:13:20 +0000
(07:13 +0800)
setup/main.py
patch
|
blob
|
history
diff --git
a/setup/main.py
b/setup/main.py
index
3522e1c
..
ba866d9
100644
(file)
--- a/
setup/main.py
+++ b/
setup/main.py
@@
-19,6
+19,7
@@
# Free Software Foundation, Inc., 59 Temple Place, Suite 330,
# Boston, MA 02111-1307 USA
+import sys
from os import path
import gtk
import gobject
@@
-53,9
+54,8
@@
class Setup(object):
try:
self.__bus = ibus.Bus()
except:
- import traceback
- traceback.print_exc()
- self.__bus = None
+ print >> sys.stderr, "Can not connect to ibus-daemon!"
+ sys.exit(1)
glade_file = path.join(path.dirname(__file__), "./setup.glade")
self.__xml = glade.XML(glade_file)