I want to remove Videos and Music from the left side panel. But, I can't seem to find the option to do so. How do you do that?
I want to remove Videos and Music from the left side panel. But, I can't seem to find the option to do so. How do you do that?
Tested in Ubuntu 14.04
Those bookmarks are controlled by
~/.config/user-dirs.dirs
and commenting out a lines configures the appearance of the listAs an example, to remove the Videos bookmark from the list change the line:
to
Note:
After login the file
~/.config/user-dirs.dirs
gets reverted to the original set by/etc/xdg/user-dirs.defaults
. To prevent that make the file "read-only" either by right clicking and then properties > permissions or using the commandIf you need to edit the file again do the opposite via Nautilus or use the command
If you want to apply this to all users in your system change the file
vim /etc/xdg/user-dirs.conf
and set the optionenabled
toFalse
. You need root permissions or this.Open the file
user-dirs.dirs
in your~/.config
folder with your favorite text editor.Comment out the line about the folder, which you do not want to be in the nautilus left pane. I commented about the Videos folder.
Then open a terminal, and run
xdg-user-dirs-gtk-update
, see the magic.for 13.04 or later:
In Nautilus >= 3.6 this will not survive a logout/login or reboot. To overcome this we have to point our
XDG
directories to"$HOME"
like e.g.:Aha - the definitive answer, thanks to A. J. McMinn: Removing entries from Nautilus Places
1) Comment out the unwanted bookmarks in
~/.config/user-dirs.dirs
2) Make or edit a
~/.config/user-dirs.conf
file and add the entryenabled=false
.This solution persists over boot.
*...this could be done with a one-liner:
echo "enabled=false" > ~/.config/user-dirs.conf
These directories are set by xdg-user-dirs.
Reading the documentation shows that you can disable a user directory by pointing it to your home directory. Use Ubuntu-Tweak or manually edit the file ~/.conf/user-dirs.dirs and point all the bookmarks you do not want to see to your home dir, and they will also disappear from the Nautilus side bar.
NOTE: I tried commenting out and removing the lines from ~/.conf/user-dirs.dirs as forestpiskie suggests, and that worked only until the next time I logged in. By setting them to the $HOME dir, the settings stuck.
echo "enabled=false" > ~/.config/user-dirs.conf
which will create the user-dirs.conf file containing the optionenable=false
.These steps still seem to work in 18.04. Based on comments in this thread I made the following bash script that performs the task. Note, you still need to restart nautilus and right-click remove the items after executing these commands:
Edit -
Dug into it a bit further - if you edit ~/.config/user-dirs.dir you can remove them from the panel and still have them as folders in your /home it seems.
try going on Bookmarks in window menu, bookmarks > modify bookmarks (translate from italian ubuntu) and the remove the one that you don't want
otherwise Ctrl + D to access the menu