Lines 7-12
Link Here
|
7 |
# because we still need to do some cleanup. |
7 |
# because we still need to do some cleanup. |
8 |
trap 'echo GOT SIGHUP' HUP |
8 |
trap 'echo GOT SIGHUP' HUP |
9 |
|
9 |
|
|
|
10 |
_KDEDIR=/usr |
11 |
if [ "$_KDEDIR" != "/usr" ]; then |
12 |
export PATH=${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g') |
13 |
export ROOTPATH=${_KDEDIR}/sbin:${_KDEDIR}/bin:$(echo ${PATH} | sed 's/$/:/g;s#/usr/kde/[^/]*/s\?bin/\?:##g;s/:$//g') |
14 |
export XDG_CONFIG_DIRS=${_KDEDIR}/etc/xdg |
15 |
fi |
16 |
@REPLACE_LDPATH@ |
17 |
export STRIGI_PLUGIN_PATH="${_KDEDIR}/lib/strigi:${STRIGI_PLUGIN_PATH}" |
18 |
export XDG_DATA_DIRS=${_KDEDIR}/share:$(echo ${XDG_DATA_DIRS} | sed 's/$/:/g;s#/usr/kde/[^/]*/share/\?:##g;s/:$//g') |
19 |
export XDG_MENU_PREFIX=kde-4.2- |
20 |
|
21 |
if [ -z "$HOME" ]; then |
22 |
xmessage "HOME is unset. Your user config seems to be broken. Aborting." |
23 |
exit 1 |
24 |
fi |
25 |
|
26 |
# Gentoo: handle the possible home directory layout for config directory |
27 |
# Note that we change the default KDEHOME in kdelibs to .kde4 or .kde${SLOT} |
28 |
# for -kdeprefix and +kdeprefix respectively. |
29 |
if [ "${_KDEDIR}" = "/usr" ]; then |
30 |
# If the directory doesn't exist make it |
31 |
[ -e "${HOME}/.kde4" ] || mkdir "$HOME/.kde4" |
32 |
else |
33 |
# Use multiple directories based upon the KDE directory |
34 |
[ -e "$HOME/.kde$(basename $_KDEDIR)" ] || mkdir "$HOME/.kde$(basename $_KDEDIR)" |
35 |
if [ ! -d "$HOME/.kde$(basename $_KDEDIR)" ]; then |
36 |
xmessage "$HOME/.kde$(basename $_KDEDIR) exists but is not a dir. Aborting." |
37 |
exit 1 |
38 |
fi |
39 |
fi |
40 |
|
10 |
# Check if a KDE session already is running and whether it's possible to connect to X |
41 |
# Check if a KDE session already is running and whether it's possible to connect to X |
11 |
kcheckrunning |
42 |
kcheckrunning |
12 |
kcheckrunning_result=$? |
43 |
kcheckrunning_result=$? |
Lines 210-215
Link Here
|
210 |
done |
241 |
done |
211 |
done |
242 |
done |
212 |
|
243 |
|
|
|
244 |
# Gentoo part for FHS installs |
245 |
if [ "${_KDEDIR}" = "/usr" ]; then |
246 |
for file in "/etc/kde/startup/"*.sh; do |
247 |
test -r "${file}" && . "${file}" |
248 |
done |
249 |
fi |
250 |
|
213 |
# Set the path for Qt plugins provided by KDE |
251 |
# Set the path for Qt plugins provided by KDE |
214 |
if test -n "$QT_PLUGIN_PATH"; then |
252 |
if test -n "$QT_PLUGIN_PATH"; then |
215 |
QT_PLUGIN_PATH="$QT_PLUGIN_PATH:`kde4-config --path qtplugins`" |
253 |
QT_PLUGIN_PATH="$QT_PLUGIN_PATH:`kde4-config --path qtplugins`" |
Lines 218-223
Link Here
|
218 |
fi |
256 |
fi |
219 |
export QT_PLUGIN_PATH |
257 |
export QT_PLUGIN_PATH |
220 |
|
258 |
|
|
|
259 |
# Source scripts in /etc/X11/xinit/xinitrc.d/ for system-level defined stuff |
260 |
if test -d "/etc/X11/xinit/xinitrc.d/"; then |
261 |
for file in "/etc/X11/xinit/xinitrc.d/"*; do |
262 |
test -x "$file" && . "$file" |
263 |
done |
264 |
fi |
265 |
|
221 |
# Activate the kde font directories. |
266 |
# Activate the kde font directories. |
222 |
# |
267 |
# |
223 |
# There are 4 directories that may be used for supplying fonts for KDE. |
268 |
# There are 4 directories that may be used for supplying fonts for KDE. |
Lines 423-428
Link Here
|
423 |
done |
468 |
done |
424 |
done |
469 |
done |
425 |
|
470 |
|
|
|
471 |
# Gentoo part for FHS installs |
472 |
if [ "${_KDEDIR}" = "/usr" ]; then |
473 |
for file in "/etc/kde/shutdown/"*.sh; do |
474 |
test -r "${file}" && . "${file}" |
475 |
done |
476 |
fi |
477 |
|
426 |
unset KDE_FULL_SESSION |
478 |
unset KDE_FULL_SESSION |
427 |
xprop -root -remove KDE_FULL_SESSION |
479 |
xprop -root -remove KDE_FULL_SESSION |
428 |
unset KDE_SESSION_VERSION |
480 |
unset KDE_SESSION_VERSION |