hi , i've made a little script for linking any directory to your desktop , iam a beginner in shell script, for now the script use zenity for choosing the directory you want to link, but maybe someone could adapt it with gtkdialog , please could you test it and give me the bugs you have to install zenity from tazpkg first thanks : for beginners copy the following code in an empty file and under pcmanfm right click propiety right select execute
################################################################ #!/bin/bash ##script dlc desktop-link-creator##pizuxmepis ate gmail point com ##the .desktop create got the suffix (dlc-)foo.desktop for dissociate from other one cd $HOME if [ -e .config/user-dirs.dirs ]; then . .config/user-dirs.dirs else XDG_DESKTOP_DIR="$HOME/Desktop" fi mkdir -p $XDG_DESKTOP_DIR DIR() { name=$(zenity --file-selection \ --directory --title="Choose a directory to link on your desktop") if [ $? -ne 0 ];then exit; fi; base=$(basename $name) cd /home/$USER/Desktop if [ -e dlc-$base.desktop ]; then zenity --warning --text=\ "This directory link already exist, please choose another one or delete it from your desktop "; cd $HOME ; DIR else echo "[Desktop Entry] Comment=pcmanfm link to directory $name Name=$base Exec=pcmanfm $name Icon=folder Type=Application Terminal=false NotShowIn=KDE;XFCE;GNOME;" >>dlc-$base.desktop fi } DIR ############################################################