Permalink
Browse files

improve ibus-engine-table file

  • Loading branch information...
1 parent ae52792 commit 170e0934de4e3e2a1a4b72f9bd4a3f7998c53554 @acevery acevery committed Oct 19, 2009
Showing with 8 additions and 7 deletions.
  1. +8 −7 engine/ibus-engine-table.in
@@ -27,16 +27,17 @@ export IBUS_TABLE_LOCATION=@datarootdir@/ibus-table
for arg in $@; do
case $arg in
- --xml)
+ --xml | -x)
exec python @datarootdir@/ibus-table/engine/main.py --xml;;
--help | -h)
exec python @datarootdir@/ibus-table/engine/main.py $@;;
+ *)
+ # first running speedmeter as a daemon
+ python @datarootdir@/ibus-table/engine/speedmeter.py -d > /dev/null
+
+ # then start our IME
+ exec python @datarootdir@/ibus-table/engine/main.py $@
+ exit 0
esac
done
-# first running speedmeter as a daemon
-python @datarootdir@/ibus-table/engine/speedmeter.py -d
-
-# then start our IME
-exec python @datarootdir@/ibus-table/engine/main.py $@
-

0 comments on commit 170e093

Please sign in to comment.