aboutsummaryrefslogtreecommitdiffstats
path: root/xinit.d
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2005-09-26 13:12:38 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2005-09-26 13:12:38 +0000
commit7c2aaebcae5de59feb6b816c16eecbd92d977820 (patch)
tree7425854fdd3a0913a0e72788b64d8f13584b6099 /xinit.d
parentcfc9621f37811fafaecaef914bce31a36bbf2b82 (diff)
downloadcommon-data-7c2aaebcae5de59feb6b816c16eecbd92d977820.tar
common-data-7c2aaebcae5de59feb6b816c16eecbd92d977820.tar.gz
common-data-7c2aaebcae5de59feb6b816c16eecbd92d977820.tar.bz2
common-data-7c2aaebcae5de59feb6b816c16eecbd92d977820.tar.xz
common-data-7c2aaebcae5de59feb6b816c16eecbd92d977820.zip
-create .directory as hidden file
-encode url in UTF8
Diffstat (limited to 'xinit.d')
-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