diff options
author | Eitan Isaacson <eitan@monotonous.org> | 2011-04-29 15:46:59 -0700 |
---|---|---|
committer | Eitan Isaacson <eitan@monotonous.org> | 2011-05-02 10:21:08 -0700 |
commit | 18e6f7f81a8923570cd84084653df95421e053ce (patch) | |
tree | d0cc03619589a90c1c36c2130478b47fb6e3c2f6 /bin | |
parent | e1ae6ee91507a47cbe2fe537f3107c17390bc0e2 (diff) | |
download | caribou-18e6f7f81a8923570cd84084653df95421e053ce.tar.gz |
Added executable and DBus service file for Antler.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/Makefile.am | 1 | ||||
-rw-r--r-- | bin/antler-keyboard.in | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/bin/Makefile.am b/bin/Makefile.am index e7797ec..88f281d 100644 --- a/bin/Makefile.am +++ b/bin/Makefile.am @@ -1,4 +1,5 @@ bin_SCRIPTS = caribou caribou-preferences +libexec_SCRIPTS = antler-keyboard CLEANFILES = $(bin_SCRIPTS) diff --git a/bin/antler-keyboard.in b/bin/antler-keyboard.in new file mode 100644 index 0000000..85d88ec --- /dev/null +++ b/bin/antler-keyboard.in @@ -0,0 +1,18 @@ +#!/usr/bin/env python + +import sys, os +import traceback + +libs = os.path.join('@prefix@', 'lib', 'python@PYTHON_VERSION@', 'site-packages') + +# This might be run from the build dir. +_dirname = os.path.dirname(__file__) +if _dirname != "@prefix@/libexec": + libs = os.path.normpath(os.path.join(_dirname, '..')) + +sys.path.insert(1, libs) + +from caribou.antler.main import AntlerKeyboardService + +antler_keyboard_service = AntlerKeyboardService() +antler_keyboard_service.run() |