Version 0.2
Logout/Login is no more required to update the quicklist, since a new shortcut have been added to the home icon, to trigger the update.
Install
1. open Terminal and paste the following command:
Code:
sudo gedit /usr/local/bin/unity-home-quicklist
2. type password if required, then paste the following code in Gedit:
Code:
#!/bin/bash
file=~/.local/share/applications/nautilus-home.desktop
#-----------------------------------------------------------
# Create Basic File
#-----------------------------------------------------------
cp /usr/share/applications/nautilus-home.desktop $file
cat >> $file <<EOF
X-Ayatana-Desktop-Shortcuts=
EOF
#-----------------------------------------------------------
# Add bookmarks to basic file
#-----------------------------------------------------------
# for bookmark in $(cat ~/.gtk-bookmarks); do
cat -n ~/.gtk-bookmarks | while read number bookmark alias; do
echo -n Adding $bookmark
path=$(echo $bookmark | sed -e 's|file:///home/'$USER'/||')
if [[ $alias == '' ]]; then
name=$(basename $path)
else
name=$alias
fi
ayatana_old=$(cat $file | grep X-Ayatana-Desktop-Shortcuts)
ayatana_new="$ayatana_old$name;"
sed -e 's|X-Ayatana-Desktop-Shortcuts.*|'$ayatana_new'|g' -i $file
cat >> $file <<EOF
[$name Shortcut Group]
Name=$name
Exec=nautilus $path
TargetEnvironment=Unity
EOF
echo ....................[OK]
done
#-----------------------------------------------------------
# Add Update Link to basic file
#-----------------------------------------------------------
echo -n Adding Update Link
ayatana_old=$(cat $file | grep X-Ayatana-Desktop-Shortcuts)
ayatana_new=$ayatana_old"unity-home-quicklist-spacer;unity-home-quicklist-update"
sed -e 's|X-Ayatana-Desktop-Shortcuts.*|'$ayatana_new'|g' -i $file
cat >> $file <<EOF
[unity-home-quicklist-spacer Shortcut Group]
Name=
Exec=
TargetEnvironment=Unity
[unity-home-quicklist-update Shortcut Group]
Name=Update Bookmarks
Exec=unity-home-quicklist
TargetEnvironment=Unity
EOF
echo ....................[OK]
#-----------------------------------------------------------
# End script
#-----------------------------------------------------------
exit 0
3. save the file and exit
4. back to terminal, run the following commands:
Code:
unity-home-quicklist
nautilus ~/.local/share/applications/
5. A Nautilus window will popup. Drag the file nautilus-home.desktop to your launcher
6. Close Nautilus
7. Close Terminal
Bookmarks