summaryrefslogtreecommitdiffstats
path: root/starttde
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-05 15:08:45 -0600
committerTimothy Pearson <[email protected]>2012-03-05 15:08:45 -0600
commitd45b92156e2cf9b22c67e63642ae149c4c83c160 (patch)
treebfedcbc98296099e2aaa67d0b9c5da9550d13311 /starttde
parent696fe6318f5758b5a4aef724444bbf18b860469c (diff)
downloadtdebase-d45b92156e2cf9b22c67e63642ae149c4c83c160.tar.gz
tdebase-d45b92156e2cf9b22c67e63642ae149c4c83c160.zip
Fix start as the default session
Thanks to Slávek Banko for the patch!
Diffstat (limited to 'starttde')
-rw-r--r--starttde4
1 files changed, 2 insertions, 2 deletions
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:*) ;;