aboutsummaryrefslogtreecommitdiffstats
path: root/xinit.d
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2007-08-06 16:21:05 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2007-08-06 16:21:05 +0000
commit65c1889a15e29dd0d2ff21c57bdf44428faebec5 (patch)
treee190bb8e758540350ba649a0c8f7147403a215df /xinit.d
parent08e30fcffef47926492d41867d717349933e0c82 (diff)
downloadcommon-data-65c1889a15e29dd0d2ff21c57bdf44428faebec5.tar
common-data-65c1889a15e29dd0d2ff21c57bdf44428faebec5.tar.gz
common-data-65c1889a15e29dd0d2ff21c57bdf44428faebec5.tar.bz2
common-data-65c1889a15e29dd0d2ff21c57bdf44428faebec5.tar.xz
common-data-65c1889a15e29dd0d2ff21c57bdf44428faebec5.zip
Die mdk-folders, dieV2008_0_1mdv
Diffstat (limited to 'xinit.d')
-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
-