[ltt-dev] [PATCH] runlttv: Specify path of .runlttvrc

Benjamin Poirier benjamin.poirier at polymtl.ca
Tue Sep 22 15:39:09 EDT 2009


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 at polymtl.ca>
---
 runlttv |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/runlttv b/runlttv
index ceb6349..86edfd3 100755
--- 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"
-- 
1.6.3.3





More information about the lttng-dev mailing list