[caribou] Fix executables to set implicit XDG_DATA_DIRS
- From: Eitan Isaacson <eitani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [caribou] Fix executables to set implicit XDG_DATA_DIRS
- Date: Mon, 13 Jun 2011 22:02:01 +0000 (UTC)
commit 8a1b6275cd8c82df8b42aba187f35f91b2840db0
Author: Eitan Isaacson <eitan monotonous org>
Date: Mon Jun 13 12:01:40 2011 -0700
Fix executables to set implicit XDG_DATA_DIRS
bin/antler-keyboard.in | 3 ++-
bin/caribou-preferences.in | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/bin/antler-keyboard.in b/bin/antler-keyboard.in
index 35dc200..1b0c450 100755
--- a/bin/antler-keyboard.in
+++ b/bin/antler-keyboard.in
@@ -25,10 +25,11 @@ exec_prefix= exec_prefix@
if [ $script_dir == "@libexecdir@" ]
then
+ datadir="$(@PYTHON@ -c "import glib; print ':'.join(glib.get_system_data_dirs())")"
export PYTHONPATH="${prefix}/lib/python PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}"
export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
export LD_LIBRARY_PATH="@libdir ${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
- export XDG_DATA_DIRS="@datadir ${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}"
+ export XDG_DATA_DIRS="@datadir ${datadir:+:$datadir}"
else
export PYTHONPATH="$(dirname $script_dir)${PYTHONPATH:+:$PYTHONPATH}"
export GI_TYPELIB_PATH="$(dirname $script_dir)/libcaribou${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
diff --git a/bin/caribou-preferences.in b/bin/caribou-preferences.in
index 6621054..6aae29e 100755
--- a/bin/caribou-preferences.in
+++ b/bin/caribou-preferences.in
@@ -25,10 +25,11 @@ exec_prefix= exec_prefix@
if [ $script_dir == "@bindir@" ]
then
+ datadir="$(@PYTHON@ -c "import glib; print ':'.join(glib.get_system_data_dirs())")"
export PYTHONPATH="@prefix@/lib/python PYTHON_VERSION@/site-packages${PYTHONPATH:+:$PYTHONPATH}"
export GI_TYPELIB_PATH="@libdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
export LD_LIBRARY_PATH="@libdir ${LD_LIBRARY_PATH:+:LD_LIBRARY_PATH}"
- export XDG_DATA_DIRS="@datadir ${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}"
+ export XDG_DATA_DIRS="@datadir ${datadir:+:$datadir}"
else
export PYTHONPATH="$(dirname $script_dir)${PYTHONPATH:+:$PYTHONPATH}"
export GI_TYPELIB_PATH="$(dirname $script_dir)/libcaribou${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]