summaryrefslogtreecommitdiffstats
path: root/etc/xdg/plasma-workspace/env/env.sh
blob: 34def39e1bc7a01263eb70828d36804e21dacac7 (plain)
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
## from http://standards.freedesktop.org/menu-spec/latest/

# XDG_CONFIG_DIRS
#if [ -z "${XDG_CONFIG_DIRS}" ] ; then
#   XDG_CONFIG_DIRS=/etc/xdg:/var/lib/plasma5-profiles/common/xdg
#   export XDG_CONFIG_DIRS
#fi

if [ "$MGA_MENU_STYLE" = "upstream" ]; then
	if  [ -z "$XDG_CONFIG_DIRS" ]; then
		export XDG_CONFIG_DIRS="/etc/xdg/kf5:/etc/xdg"
	else
	        export XDG_CONFIG_DIRS="/etc/xdg/kf5:$XDG_CONFIG_DIRS"
	fi
else
        if  [ -z "$XDG_CONFIG_DIRS" ]; then
	        export XDG_CONFIG_DIRS="/etc/xdg:/etc/xdg/kf5:/var/lib/plasma5-profiles/common/xdg"
        else
	        export XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS:/etc/xdg/kf5:/var/lib/plasma5-profiles/common/xdg"
	fi
	export XDG_MENU_PREFIX="plasma-"
fi


# XDG_DATA_DIRS
if [ -z "${XDG_DATA_DIRS}" ] ; then
   XDG_DATA_DIRS=/var/lib/plasma5-profiles/common/share:/usr/local/share:/usr/share
   export XDG_DATA_DIRS
fi