summaryrefslogtreecommitdiff
path: root/Xsession.d/55kanotix-kde
blob: 788169c6e14186509426a637523689b1ddb1feb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# If we are running kde, export KDEDIRS with own Kanotix kde-settings dir

BASESTARTUP=$(basename "$STARTUP" | cut -d\  -f1)
if [ "$BASESTARTUP" = x-session-manager ]; then
    BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
fi
if [ "$BASESTARTUP" = "startkde" ]; then
    if [[ -z "$KDEDIRS" ]]; then 
        KDEDIRS=/usr/share/kde-kanotix-settings/:/usr
    else 
        KDEDIRS=/usr/share/kde-kanotix-settings/:$KDEDIRS:/usr
    fi
    export KDEDIRS
fi