summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--starttde6
1 files changed, 4 insertions, 2 deletions
diff --git a/starttde b/starttde
index fb03afb9a..f96494e68 100644
--- a/starttde
+++ b/starttde
@@ -170,8 +170,10 @@ if [ -d $TDEDIR/bin ]; then
fi
fi
if [ -d $TDEDIR/share/man ]; then
- if [ "$MANPATH" = "" ]; then
- export MANPATH=$TDEDIR/share/man
+ if [ -x /usr/bin/manpath ]; then
+ if [ "`manpath -q | grep \"$TDEDIR/share/man\"`" = "" ]; then
+ export MANPATH=$TDEDIR/share/man:$MANPATH
+ fi
else
if [ "`echo $MANPATH | grep \"$TDEDIR/share/man\"`" = "" ]; then
export MANPATH=$TDEDIR/share/man:$MANPATH