aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xxinit.d/desktop-directories6
1 files changed, 5 insertions, 1 deletions
diff --git a/xinit.d/desktop-directories b/xinit.d/desktop-directories
index ffe7512..5f01564 100755
--- a/xinit.d/desktop-directories
+++ b/xinit.d/desktop-directories
@@ -19,8 +19,12 @@ if [ "$UID" != "0" -a ! -e $MDK_FOLDERS ]; then
for file in /usr/share/mdk/menu/*-mdk.desktop.template ; do
TARGET_DIR=`grep -m1 -F Name[$locale]= $file | sed -e 's|.*=||g'`
if [ -z "$TARGET_DIR" ]; then
- locale=`echo $locale | sed -e 's/_.*//g' -e 's/@.*//g'`
+ locale=`echo $locale | sed -e 's/@.*//g' -e 's/\..*//g'`
TARGET_DIR=`grep -m1 -F Name[$locale]= $file | sed -e 's|.*=||g'`
+ if [ -z "$TARGET_DIR" ]; then
+ locale=`echo $locale | sed -e 's/_.*//g'`
+ TARGET_DIR=`grep -m1 -F Name[$locale]= $file | sed -e 's|.*=||g'`
+ fi
fi
if [ -z "$TARGET_DIR" ]; then