changeset 763:654a8ca9d5b4

Set config dir used by trustbridge-tray-starter at runtime.
author Sascha Wilde <wilde@intevation.de>
date Fri, 04 Jul 2014 18:06:23 +0200
parents 7c1f34115ede
children 5b505acbb2d1
files packaging/linux-installer.inc.in ui/trustbridge-tray-starter.sh
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packaging/linux-installer.inc.in	Fri Jul 04 18:00:11 2014 +0200
+++ b/packaging/linux-installer.inc.in	Fri Jul 04 18:06:23 2014 +0200
@@ -341,8 +341,6 @@
 echo "Preparing trustbridge-tray-starter ..."
 sed -i "/^PREFIX=/c\PREFIX='${instcfg[PREFIX]}'" \
     "${instcfg[PREFIX]}/bin/trustbridge-tray-starter.sh"
-sed -i "/^CFGDIR=/c\CFGDIR='${instcfg_path}'" \
-    "${instcfg[PREFIX]}/bin/trustbridge-tray-starter.sh"
 
 echo "Setting up cronjob ..."
 setup_cronjob
--- a/ui/trustbridge-tray-starter.sh	Fri Jul 04 18:00:11 2014 +0200
+++ b/ui/trustbridge-tray-starter.sh	Fri Jul 04 18:06:23 2014 +0200
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 PREFIX=""
-CFGDIR=""
+CFGDIR="${XDG_CONFIG_HOME:-$HOME/.config}/BSI"
 TBCMD="trustbridge --tray"
 XSET=/usr/bin/xset
 CONFIG="$CFGDIR/trustbridge-tray-starter.cfg"

http://wald.intevation.org/projects/trustbridge/