From d45b92156e2cf9b22c67e63642ae149c4c83c160 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Mar 2012 15:08:45 -0600 Subject: =?UTF-8?q?Fix=20start=20as=20the=20default=20session=20Thanks=20t?= =?UTF-8?q?o=20Sl=C3=A1vek=20Banko=20for=20the=20patch!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- starttde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starttde') diff --git a/starttde b/starttde index 6c47b723a..6fc0ca6f1 100644 --- a/starttde +++ b/starttde @@ -25,7 +25,7 @@ echo "[starttde] This script is $0" 1>&2 # To determine that location use the following method rather than presuming # the existence of $TDEDIR. That environment variable might not be # defined or defined to point to KDE4 binaries. -BIN_DIR="`dirname $0`" +BIN_DIR="`dirname \`readlink -f $0\``" # Do not use tde-config to determine the version. That command creates a # profile directory in the root of the file system. Refer to Bug Report 293. if [ -x $BIN_DIR/konqueror ]; then @@ -77,7 +77,7 @@ if [ -z $TDE_IS_PRELINKED ]; then fi # In case we have been started with full pathname spec without being in PATH. -bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'` +bindir=`readlink -f "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'` if [ -n "$bindir" ]; then case $PATH in $bindir|$bindir:*|*:$bindir|*:$bindir:*) ;; -- cgit v1.2.3