runlttv: Specify path of .runlttvrc
authorBenjamin Poirier <benjamin.poirier@polymtl.ca>
Tue, 22 Sep 2009 19:39:09 +0000 (15:39 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Tue, 22 Sep 2009 20:34:00 +0000 (16:34 -0400)
Use the path of the runlttv script to source .runlttvrc. This allows using
runlttv from a directory other than the one where .runlttvrc resides.

Signed-off-by: Benjamin Poirier <benjamin.poirier@polymtl.ca>
runlttv

diff --git a/runlttv b/runlttv
index ceb6349b8c78e4d68d3091c1c16f8a7a76d6d451..86edfd3f8cb2efdff07279d0d76f5d80f634a539 100755 (executable)
--- a/runlttv
+++ b/runlttv
@@ -19,7 +19,7 @@
 #   $ ln -s ./lttv/modules/gui/lttvwindow/pixmaps
 # while in the same directory as this script.
 
-RCFILE=".runlttvrc"
+RCFILE="$(dirname $0)/.runlttvrc"
 
 if [ "$MODE" = "text" ]; then
        ARGS="-L lttv/modules/text/.libs -m textDump"
This page took 0.024117 seconds and 4 git commands to generate.