By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 675
Collapse All | Expand All

(-)tdebase/starttde (-34 / +72 lines)
Lines 33-39 Link Here
33
  echo "[starttde] TDE version is $TDE_VERSION" 1>&2
33
  echo "[starttde] TDE version is $TDE_VERSION" 1>&2
34
  TDEDIR=`echo $BIN_DIR | sed 's|/bin||'`
34
  TDEDIR=`echo $BIN_DIR | sed 's|/bin||'`
35
  echo "[starttde] TDE base directory is $TDEDIR" 1>&2
35
  echo "[starttde] TDE base directory is $TDEDIR" 1>&2
36
  echo
37
else
36
else
38
  echo "[starttde] Unable to determine TDE base directory."
37
  echo "[starttde] Unable to determine TDE base directory."
39
  echo "[starttde] This script should be installed in the same directory."
38
  echo "[starttde] This script should be installed in the same directory."
Lines 67-73 Link Here
67
# Check whether prelinking is enabled. If so, exporting TDE_IS_PRELINKED improves
66
# Check whether prelinking is enabled. If so, exporting TDE_IS_PRELINKED improves
68
# loading TDE. The $TDE_IS_PRELINKED variable might already be set on some systems
67
# loading TDE. The $TDE_IS_PRELINKED variable might already be set on some systems
69
# through /etc/profile.d, so first check whether the variable exists.
68
# through /etc/profile.d, so first check whether the variable exists.
70
if [ -z $TDE_IS_PRELINKED ]; then
69
if [ $TDE_IS_PRELINKED = "" ]; then
71
  if [ -r /etc/default/prelink ]; then
70
  if [ -r /etc/default/prelink ]; then
72
    . /etc/default/prelink
71
    . /etc/default/prelink
73
    if [ "$PRELINKING" == "yes" ]; then
72
    if [ "$PRELINKING" == "yes" ]; then
Lines 76-90 Link Here
76
  fi
75
  fi
77
fi
76
fi
78
77
79
# In case we have been started with full pathname spec without being in PATH.
80
bindir=`echo "$0" | sed -n 's,^\(/.*\)/[^/][^/]*$,\1,p'`
81
if [ -n "$bindir" ]; then
82
  case $PATH in
83
    $bindir|$bindir:*|*:$bindir|*:$bindir:*) ;;
84
    *) PATH=$bindir:$PATH; export PATH;;
85
  esac
86
fi
87
88
# Boot sequence:
78
# Boot sequence:
89
#
79
#
90
# tdeinit is used to fork off processes which improves memory usage
80
# tdeinit is used to fork off processes which improves memory usage
Lines 106-112 Link Here
106
# $HOME/.kde might point to KDE4 profile settings. The existence of KDE4
96
# $HOME/.kde might point to KDE4 profile settings. The existence of KDE4
107
# does not mean all people are using KDE4.
97
# does not mean all people are using KDE4.
108
98
109
if [ -n "$TDEHOME" ]; then
99
if [ "$TDEHOME" != "" ]; then
110
  echo "[starttde] TDEHOME is preset to $TDEHOME." 1>&2
100
  echo "[starttde] TDEHOME is preset to $TDEHOME." 1>&2
111
  export TDEHOME=$TDEHOME
101
  export TDEHOME=$TDEHOME
112
else
102
else
Lines 152-195 Link Here
152
# kdesu needs something to find root's TDE profile. Set the TDEROOTHOME variable
142
# kdesu needs something to find root's TDE profile. Set the TDEROOTHOME variable
153
# here as last resort. /root/.trinity is a safe presumption. If an admin wants
143
# here as last resort. /root/.trinity is a safe presumption. If an admin wants
154
# a different location then set the TDEROOTHOME variable elsewhere.
144
# a different location then set the TDEROOTHOME variable elsewhere.
155
if [ -z "$TDEROOTHOME" ]; then
145
if [ "$TDEROOTHOME" = "" ]; then
156
  export TDEROOTHOME=/root/.trinity
146
  export TDEROOTHOME=/root/.trinity
157
  echo "[starttde] Setting TDEROOTHOME to $TDEROOTHOME."
147
  echo "[starttde] Setting TDEROOTHOME to $TDEROOTHOME."
158
fi
148
fi
159
149
160
# Modify the following environment variables only as necessary.
150
# Modify the following environment variables only as necessary.
161
if [ -d $TDEDIR/games ]; then
151
if [ -d $TDEDIR/games ]; then
162
  if [ -z "`echo $PATH | grep \"$TDEDIR/games\"`" ]; then
152
  if [ "`echo $PATH | grep \"$TDEDIR/games\"`" = "" ]; then
163
    export PATH=$TDEDIR/games:$PATH
153
    export PATH=$TDEDIR/games:$PATH
164
  fi
154
  fi
165
fi
155
fi
166
if [ -d $TDEDIR/bin ]; then
156
if [ -d $TDEDIR/bin ]; then
167
  if [ -z "`echo $PATH | grep \"$TDEDIR/bin\"`" ]; then
157
  if [ "`echo $PATH | grep \"$TDEDIR/bin\"`" = "" ]; then
168
    export PATH=$TDEDIR/bin:$PATH
158
    # Respect the traditional path order. Don't blindly place $TDEDIR/bin
169
  fi
159
    # first in the path. Only place $TDEDIR/bin before /usr/bin. This order is
170
fi
160
    # consistent with tdelibs/tdesu/stub.cpp. If packagers are adding $TDEDIR/bin
171
if [ -d $TDEDIR/share ]; then
161
    # elsewhere, then they need to ensure the traditional search patch is respected.
172
  if [ -z "`echo $XDG_DATA_DIRS | grep \"$TDEDIR/share\"`" ]; then
162
    # Is there a way we can check that $TDEDIR/bin is always placed only just before
173
    if [ "$XDG_DATA_DIRS" = "" ]; then
163
    # /usr/bin in the search path?
174
      XDG_DATA_DIRS=$TDEDIR/share
164
    if [ "`echo $PATH | grep \"^/usr/bin:\"`" != "" ]; then
165
      export PATH="`echo $PATH | sed \"s|^/usr/bin:|$TDEDIR/bin:/usr/bin:|\"`"
166
    elif [ "`echo $PATH | grep \":/usr/bin$\"`" != "" ]; then
167
      export PATH="`echo $PATH | sed \"s|:/usr/bin$|:$TDEDIR/bin:/usr/bin|\"`"
168
    elif [ "`echo $PATH | grep \":/usr/bin:\"`" != "" ]; then
169
      export PATH="`echo $PATH | sed \"s|:/usr/bin:|:$TDEDIR/bin:/usr/bin:|\"`"
175
    else
170
    else
176
      XDG_DATA_DIRS=$XDG_DATA_DIRS:$TDEDIR/share
171
      export PATH=$TDEDIR/bin:$PATH
177
    fi
172
    fi
178
    export XDG_DATA_DIRS
179
  fi
173
  fi
180
fi
174
fi
181
if [ -d $TDEDIR/etc/xdg ]; then
175
182
  if [ -z "`echo $XDG_CONFIG_DIRS | grep \"$TDEDIR/etc/xdg\"`" ]; then
176
if [ "$XDG_CONFIG_DIRS" = "" ]; then
177
  if [ -d /etc/xdg ]; then
178
    XDG_CONFIG_DIRS=/etc/xdg
179
  fi
180
fi
181
if [ -d /etc/trinity/xdg ]; then
182
  TDE_XDG_DIR="/etc/trinity/xdg"
183
elif [ -d /etc/tde/xdg ]; then
184
  TDE_XDG_DIR="/etc/tde/xdg"
185
elif [ -d $TDEDIR/xdg ]; then
186
  TDE_XDG_DIR="$TDEDIR/xdg"
187
elif [ -d $TDEDIR/etc/xdg ]; then
188
  TDE_XDG_DIR="$TDEDIR/etc/xdg"
189
elif [ -d $TDEDIR/etc/trinity/xdg ]; then
190
  TDE_XDG_DIR="$TDEDIR/etc/trinity/xdg"
191
elif [ -d $TDEDIR/etc/tde/xdg ]; then
192
  TDE_XDG_DIR="$TDEDIR/etc/tde/xdg"
193
elif [ -d $TDEDIR/trinity/xdg ]; then
194
  TDE_XDG_DIR="$TDEDIR/trinity/xdg"
195
elif [ -d $TDEDIR/tde/xdg ]; then
196
  TDE_XDG_DIR="$TDEDIR/tde/xdg"
197
fi
198
if [ -d $TDE_XDG_DIR ]; then
199
  if [ "`echo $XDG_CONFIG_DIRS | grep \"$TDE_XDG_DIR\"`" = "" ]; then
183
    if [ "$XDG_CONFIG_DIRS" = "" ]; then
200
    if [ "$XDG_CONFIG_DIRS" = "" ]; then
184
      XDG_CONFIG_DIRS=$TDEDIR/etc/xdg
201
      XDG_CONFIG_DIRS=$TDE_XDG_DIR
185
    else
202
    else
186
      XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:$TDEDIR/etc/xdg
203
      XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:$TDE_XDG_DIR
187
    fi
204
    fi
188
    export XDG_CONFIG_DIRS
189
  fi
205
  fi
190
fi
206
fi
207
if [ "$XDG_CONFIG_DIRS" != "" ]; then
208
  export XDG_CONFIG_DIRS
209
fi
210
211
# Explicitly set $XDG_DATA_DIRS only when Trinity is not installed in /usr.
212
# Explicitly declaring $XDG_DATA_DIRS will override the default search path of /usr/share.
213
if [ "$TDEDIR" != "/usr" ] && [ -d $TDEDIR/share ]; then
214
  if [ "$XDG_DATA_DIRS" = "" ]; then
215
    # Ensure the standard location of /usr/share is included.
216
    XDG_DATA_DIRS=/usr/share
217
  else
218
    if [ "`echo $XDG_DATA_DIRS | grep \"/usr/share\"`" = "" ]; then
219
      XDG_DATA_DIRS=/usr/share:$XDG_DATA_DIRS
220
    fi
221
  fi
222
  if [ "`echo $XDG_DATA_DIRS | grep \"$TDEDIR/share\"`" = "" ]; then
223
    XDG_DATA_DIRS=$XDG_DATA_DIRS:$TDEDIR/share
224
  fi
225
  export XDG_DATA_DIRS
226
fi
191
if [ -d $TDEDIR/share/man ]; then
227
if [ -d $TDEDIR/share/man ]; then
192
  if [ -z "`echo $MANPATH | grep \"$TDEDIR/share/man\"`" ]; then
228
  if [ "`echo $MANPATH | grep \"$TDEDIR/share/man\"`" = "" ]; then
193
    export MANPATH=$TDEDIR/share/man:$MANPATH
229
    export MANPATH=$TDEDIR/share/man:$MANPATH
194
  fi
230
  fi
195
fi
231
fi
Lines 417-423 Link Here
417
  IFS=$savifs
453
  IFS=$savifs
418
fi
454
fi
419
455
420
if [ ! -n "$TDEDIR" ]; then
456
if [ "$TDEDIR" = "" ]; then
421
  export TDEDIR=`echo "$TDEDIRS" | sed -e 's/:.*//'`
457
  export TDEDIR=`echo "$TDEDIRS" | sed -e 's/:.*//'`
422
fi
458
fi
423
459
Lines 446-454 Link Here
446
  fi
482
  fi
447
fi
483
fi
448
484
449
if [ -n $TGTK_PRELOAD ]; then
485
if [ "$TGTK_PRELOAD" != "" ]; then
450
  if [ -e /usr/lib/libnspr4.so ]; then
486
  if [ -e /usr/lib64/libnspr4.so ]; then
451
    KGTK_NSPR_PRELOAD="/usr/lib/libnspr4.so:"
487
    TGTK_NSPR_PRELOAD="/usr/lib64/libnspr4.so:"
488
  elif [ -e /usr/lib/libnspr4.so ]; then
489
    TGTK_NSPR_PRELOAD="/usr/libnspr4.so:"
452
  fi
490
  fi
453
  export LD_PRELOAD=$TGTK_PRELOAD:$KGTK_NSPR_PRELOAD$LD_PRELOAD
491
  export LD_PRELOAD=$TGTK_PRELOAD:$KGTK_NSPR_PRELOAD$LD_PRELOAD
454
fi
492
fi

Return to bug 675