From 3186e14b8f663527bc48314fc01f95a4b97a27aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C3=A9cureuil?= Date: Thu, 28 Jul 2016 23:42:38 +0200 Subject: Fix XDG_MENU_PREFIX --- etc/xdg/plasma-workspace/env/env.sh | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/etc/xdg/plasma-workspace/env/env.sh b/etc/xdg/plasma-workspace/env/env.sh index 992b9f3..27afac0 100644 --- a/etc/xdg/plasma-workspace/env/env.sh +++ b/etc/xdg/plasma-workspace/env/env.sh @@ -1,9 +1,24 @@ ## 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 +#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="kf5-" fi @@ -13,9 +28,3 @@ if [ -z "${XDG_DATA_DIRS}" ] ; then export XDG_DATA_DIRS fi -# XDG_MENU_PREFIX -if [ -z "${XDG_MENU_PREFIX}" ] ; then - XDG_MENU_PREFIX="kf5-" - export XDG_MENU_PREFIX -fi - -- cgit v1.2.1