Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
65
rated 0 times [  65] [ 0]  / answers: 1 / hits: 54415  / 1 Year ago, sun, january 15, 2023, 8:45:05

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?



enter image description here


More From » nautilus

 Answers
6

Tested in Ubuntu 14.04



Those bookmarks are controlled by ~/.config/user-dirs.dirs and commenting out a lines configures the appearance of the list



As an example, to remove the Videos bookmark from the list change the line:



XDG_VIDEOS_DIR="$HOME/Videos"


to



#XDG_VIDEOS_DIR="$HOME/Videos"


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 command



chmod -w ~/.config/user-dirs.dirs


If you need to edit the file again do the opposite via Nautilus or use the command



chmod +w ~/.config/user-dirs.dirs


If you want to apply this to all users in your system change the file vim /etc/xdg/user-dirs.conf and set the option enabled to False. You need root permissions or this.


[#42067] Sunday, January 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
untroo

Total Points: 3
Total Questions: 110
Total Answers: 95

Location: Palestine
Member since Thu, Oct 28, 2021
3 Years ago
untroo questions
;