Thread: Unity Home Folder launcher gone
after following procedure on page:
http://askubuntu.com/questions/35488...ists-for-unity
add updated quicklist home folder launcher in unity,i have lost icon completely. script tweak runs:
can suggest how can home folder launcher back?code:#!/bin/bash # tabsize: 4, encoding: utf8 # # © 2011 con-f-use@gmx.net. use under mit license: # http://www.opensource.org/licenses/mit-license.php # # contributors: chris druif <cyber.druif@gmail.com> # # script updates unity quicklist menu nautilus contain user # bookmarks. updates have efect after unity restarted (either on # next login or invoking 'unity --replace'). # location of template , unity bar launchers nautempl="/usr/share/applications/nautilus-home.desktop" target="$home/.local/share/applications/nautilus-home.desktop" bookmarks="$home/.gtk-bookmarks" # backup if file allready exists if [ -e "$target" ]; echo "creating backup of: $target." mv -n "$target" "$target.bak" fi # copy template cp "$nautempl" "$target" sed -i "s/\(onlyshowin=gnome;\)/\1unity;/" "$target" echo "x-ayatana-desktop-shortcuts=" >> $target bmcount=0 while read bmline; bmcount=$(($bmcount+1)) # number of current bookmark bmname=${bmline#*\ } # name of bookmark bmpath=${bmline%%\ *} # path bookmark leads # deal bookmarks have no name if [ "$bmname" = "$bmpath" ]; bmname=${bmpath##*/} fi # extend shortcut list current bookmark sed -i "s/\(x-ayatana-desktop-shortcuts=.*\)/\1scg${bmcount};/" "$target" # write bookmark information cat - >> "$target" <<eof [scg$bmcount shortcut group] name=$bmname exec=nautilus $bmpath onlyshowin=unity eof done < "$bookmarks" # add root file manager entry sed -i "s/\(x-ayatana-desktop-shortcuts=.*\)/\1rootfm;/" "$target" cat - >> "$target" <<eof [rootfm shortcut group] name=root exec=gksudo nautilus onlyshowin=unity eof exit 0
sorry, don't have 11.04 in front of me. o'_'o maybe try right-clicking on fat panel? there sort of "add shortcut" option? know home folder located @ /home/me, "me" you- well, picture!
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Unity Home Folder launcher gone
Ubuntu
Comments
Post a Comment