aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xxinit.d/desktop-directories15
1 files changed, 15 insertions, 0 deletions
diff --git a/xinit.d/desktop-directories b/xinit.d/desktop-directories
new file mode 100755
index 0000000..8355152
--- /dev/null
+++ b/xinit.d/desktop-directories
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+USER_STAMP=$HOME/.mdk-desktop
+
+if [ ! -f $USER_STAMP ]; then
+ for file in /usr/share/mdk/menu/*-mdk.desktop.in ; do
+ echo $file
+ DIRECTORY_PATH="$HOME/`grep URL $file | sed -e 's|URL=file://\$HOME/||g'`"
+ FILE_PATH=$HOME/`basename $file .in`
+ [ -d "$DIRECTORY_PATH" ] || mkdir -p $DIRECTORY_PATH
+ [ -f $FILE_PATH ] || cat $file | sed -e "s|\$HOME|${HOME}|g" > $FILE_PATH
+ done
+ touch $USER_STAMP
+fi
+