summaryrefslogtreecommitdiffstats
path: root/source/kde/kde/post-install/kservice/profile.d/kde.sh
blob: 8b7c3e37b31a15e0beab00e3c9817cdbfaf1c983 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
# KDE additions:
KDEDIRS=/usr
export KDEDIRS

# Add KDE paths if they exist:
if [ -d /usr/lib/libexec/kf5 ]; then
  PATH="$PATH:/usr/lib/libexec/kf5"
fi
if [ -d /usr/lib/kde4/libexec ]; then
  PATH="$PATH:/usr/lib/kde4/libexec"
fi
export PATH

# If there's no $XDG_CONFIG_DIRS variable, set it to /etc/xdg:
if [ -z "$XDG_CONFIG_DIRS" ]; then
  XDG_CONFIG_DIRS=/etc/xdg
fi

# Add /etc/kde/xdg to $XDG_CONFIG_DIRS (if it exists):
if [ -d /etc/kde/xdg ]; then
  XDG_CONFIG_DIRS=$XDG_CONFIG_DIRS:/etc/kde/xdg
fi

export XDG_CONFIG_DIRS

# Commented out, since PAM should take care of this:
#if [ "$XDG_RUNTIME_DIR" = "" ]; then
#  # Using /run/user would be more in line with XDG specs, but in that case
#  # we should mount /run as tmpfs and add this to the Slackware rc scripts:
#  # mkdir /run/user ; chmod 1777 /run/user
#  # XDG_RUNTIME_DIR=/run/user/$USER
#  XDG_RUNTIME_DIR=/tmp/xdg-runtime-$USER
#  mkdir -p $XDG_RUNTIME_DIR
#  chown $USER $XDG_RUNTIME_DIR
#  chmod 700 $XDG_RUNTIME_DIR
#fi
#export XDG_RUNTIME_DIR