Nautilus is the default file manager in basically all Gnome-based distributions. I wonder why I cannot configure the default Bookmarks in the left panel through a context menu with that wide adoption. Is there no demand?
I managed to achieve my goal by editing two files. One is for the user, and the other one is a system file. I have not tried multiple user accounts, but I assume it affects everyone that uses the computer.
I wanted to remove "Desktop", "Public", "Templates", and "Video" because I never need that. What I ended up doing was to also change the location of "Documents", "Music", and "Pictures" to point to their respective OneDrive equivalents. That saves me from creating symbolic links, as I have explained in one of my OneDrive posts.
First, the user file.
vim ~/.config/user-dirs.dirs
#XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
#XDG_TEMPLATES_DIR="$HOME/Templates"
#XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/OneDrive/Files"
XDG_MUSIC_DIR="$HOME/OneDrive/Music"
XDG_PICTURES_DIR="$HOME/OneDrive/Pictures"
#XDG_VIDEOS_DIR="$HOME/Videos"
Next, the system file. If you only remove entries from the user file, they will be added again the next time you log in. My tests showed that it is enough to customize the location in the user file. The other way around does not work, however.
sudo vim /etc/xdg/user-dirs.defaults
#DESKTOP=Desktop
DOWNLOAD=Downloads
#TEMPLATES=Templates
#PUBLICSHARE=Public
DOCUMENTS=Files
MUSIC=Music
PICTURES=Pictures
#VIDEOS=Videos
# Another alternative is:
#MUSIC=Documents/Music
#PICTURES=Documents/Pictures
#VIDEOS=Documents/Videos
Finally, you need to log out and log in again for this change to take effect.
I hope this helps. Thank you for reading.
Thank you, worked a treat. I’m on Fedora 35 with Gnome 41.
LikeLike