aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xxinit.d/desktop-directories55
1 files changed, 0 insertions, 55 deletions
diff --git a/xinit.d/desktop-directories b/xinit.d/desktop-directories
deleted file mode 100755
index 2dd6dc6..0000000
--- a/xinit.d/desktop-directories
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-
-MDK_FOLDERS="$HOME/.mdk-folders"
-
-if [ "$UID" != "0" -a ! -e $MDK_FOLDERS ]; then
-. /etc/profile.d/10lang.sh
- locale=C
- if [ ! -z "$LC_ALL" ]; then
- locale=$LC_ALL
- elif [ ! -z "$LC_CTYPE" ]; then
- locale=$LC_CTYPE
- elif [ ! -z "$LANG" ]; then
- locale=$LANG
- fi
- CHARSET=`locale charmap`
-
- [ -d $MDK_FOLDERS ] || mkdir -p "$MDK_FOLDERS"
-
- 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'`
- 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
- TARGET_DIR=`grep -m1 -F Name= $file | sed -e 's|.*=||g'`
- fi
-
- if [ "$CHARSET" != "UTF-8" ]; then
- TARGET_DIR=`echo $TARGET_DIR | iconv -f UTF-8 -t "$CHARSET" 2>/dev/null`
- fi
-
-
- DIRECTORY_PATH="$HOME/$TARGET_DIR"
- [ -d "$DIRECTORY_PATH" ] || mkdir -p "$DIRECTORY_PATH"
- echo -e [Desktop Entry]\\n`grep Icon= $file` > "$DIRECTORY_PATH/.directory"
-
- FILE_PATH=$MDK_FOLDERS/`basename $file .template`
- SYMLINK=$MDK_FOLDERS/`basename $file -mdk.desktop.template`
-
- ln -f -s "$DIRECTORY_PATH" $SYMLINK
-
- if [ "$CHARSET" != "UTF-8" ]; then
- DIRECTORY_PATH=`echo $DIRECTORY_PATH | iconv -f "$CHARSET" -t UTF-8 2>/dev/null`
- fi
- [ -f $FILE_PATH ] || cat $file | sed -e "s|\$HOME.*|$DIRECTORY_PATH|g" > $FILE_PATH
- echo "file://$FILE_PATH" >> $HOME/.gtk-bookmarks
- done
-fi
-