aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xxinit.d/desktop-directories6
1 files changed, 5 insertions, 1 deletions
diff --git a/xinit.d/desktop-directories b/xinit.d/desktop-directories
index 64f9d34..aa38dd0 100755
--- a/xinit.d/desktop-directories
+++ b/xinit.d/desktop-directories
@@ -34,12 +34,16 @@ if [ ! -e $USER_STAMP ]; then
DIRECTORY_PATH="$HOME/$TARGET_DIR"
[ -d "$DIRECTORY_PATH" ] || mkdir -p $DIRECTORY_PATH
- echo -e [Desktop Entry]\\n`grep Icon= $file` > $DIRECTORY_PATH/.directory
+ echo -e [Desktop Entry]\\nHidden=true\\n`grep Icon= $file` > $DIRECTORY_PATH/.directory
FILE_PATH=$HOME/.mdk-folders/`basename $file .template`
SYMLINK=$HOME/.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