diff options
author | Frederic Crozat <fcrozat@mandriva.com> | 2005-08-24 17:29:48 +0000 |
---|---|---|
committer | Frederic Crozat <fcrozat@mandriva.com> | 2005-08-24 17:29:48 +0000 |
commit | 1f8ab9c1626d1dda7d0421f789cb2dd3044e0849 (patch) | |
tree | 47a7580d27041571b6cc1f192835091beda14473 | |
parent | e802b5083de74b333a77139fc43c17c854da9643 (diff) | |
download | common-data-1f8ab9c1626d1dda7d0421f789cb2dd3044e0849.tar common-data-1f8ab9c1626d1dda7d0421f789cb2dd3044e0849.tar.gz common-data-1f8ab9c1626d1dda7d0421f789cb2dd3044e0849.tar.bz2 common-data-1f8ab9c1626d1dda7d0421f789cb2dd3044e0849.tar.xz common-data-1f8ab9c1626d1dda7d0421f789cb2dd3044e0849.zip |
Rename .desktop.in into .desktop.template
add gtk-bookmarks support
-rwxr-xr-x | xinit.d/desktop-directories | 7 |
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 |