aboutsummaryrefslogtreecommitdiffstats
path: root/xinit.d/desktop-directories
diff options
context:
space:
mode:
Diffstat (limited to 'xinit.d/desktop-directories')
-rwxr-xr-xxinit.d/desktop-directories7
1 files changed, 5 insertions, 2 deletions
diff --git a/xinit.d/desktop-directories b/xinit.d/desktop-directories
index 8355152..de4b02d 100755
--- a/xinit.d/desktop-directories
+++ b/xinit.d/desktop-directories
@@ -3,12 +3,15 @@
USER_STAMP=$HOME/.mdk-desktop
if [ ! -f $USER_STAMP ]; then
- for file in /usr/share/mdk/menu/*-mdk.desktop.in ; do
+ for file in /usr/share/mdk/menu/*-mdk.desktop.template ; do
echo $file
DIRECTORY_PATH="$HOME/`grep URL $file | sed -e 's|URL=file://\$HOME/||g'`"
- FILE_PATH=$HOME/`basename $file .in`
+ FILE_PATH=$HOME/`basename $file .template`
[ -d "$DIRECTORY_PATH" ] || mkdir -p $DIRECTORY_PATH
[ -f $FILE_PATH ] || cat $file | sed -e "s|\$HOME|${HOME}|g" > $FILE_PATH
+ if [ "$file" != "/usr/share/mdk/menu/desktop-mdk.desktop.template" ]; then
+ echo "file://$FILE_PATH" >> $HOME/.gtk-bookmarks
+ fi
done
touch $USER_STAMP
fi