Software & AppsOperating SystemLinux

How To Remove ‘Places’ Entries from Nautilus Sidebar

Ubuntu 11

In this article, we will be discussing how to remove ‘Places’ entries from the Nautilus sidebar. Nautilus, the default file manager in Ubuntu, displays a list of directories under the ‘Places’ section in the sidebar. While this feature is handy for quick navigation, some users may find it cluttered and prefer a cleaner look.

Quick Answer

To remove ‘Places’ entries from the Nautilus sidebar in Ubuntu, you can modify the user-dirs.dirs configuration file by commenting out the corresponding lines for the directories you want to remove. Save the changes and update the user directories using the xdg-user-dirs-gtk-update command. If you want to disable all ‘Places’ entries, you can edit the user-dirs.conf file and add the line enabled=false. Remember to exercise caution when modifying system files and make backups before making any changes.

Understanding Nautilus Sidebar

The Nautilus sidebar, also known as the Places sidebar, displays a list of directories for easy access. These directories include your Home folder, Desktop, and other directories such as Downloads, Pictures, Videos, etc. The list is generated from a configuration file called user-dirs.dirs located in the ~/.config directory.

Accessing the Configuration File

The first step in customizing the ‘Places’ entries is to access the user-dirs.dirs file. Open a terminal window by pressing Ctrl + Alt + T and type in the following command:

gedit ~/.config/user-dirs.dirs

This command opens the user-dirs.dirs file in the Gedit text editor. The ~ symbol is a shorthand for the current user’s home directory, and /.config/user-dirs.dirs is the path to the configuration file.

Modifying the Configuration File

In the user-dirs.dirs file, you’ll see a list of entries, each corresponding to a directory in the ‘Places’ sidebar. To remove an entry, simply comment out the corresponding line by adding a # at the beginning. For example, to remove the ‘Music’ directory, change this line:

XDG_MUSIC_DIR="$HOME/Music"

to:

#XDG_MUSIC_DIR="$HOME/Music"

After making the changes, save the file and exit the text editor.

Applying the Changes

For the changes to take effect, you need to update the user directories. This can be done by running the following command in the terminal:

xdg-user-dirs-gtk-update

This command updates the user directories according to the configuration file.

Disabling All ‘Places’ Entries

If you want to remove all ‘Places’ entries, you can disable them by editing the user-dirs.conf file. Open the file by typing the following command in the terminal:

gedit ~/.config/user-dirs.conf

If the file doesn’t exist, this command will create a new one. In the user-dirs.conf file, add the following line:

enabled=false

This line disables the display of the ‘Places’ entries in Nautilus. Save the file and exit the text editor. Then, run the xdg-user-dirs-gtk-update command again to apply the changes.

Conclusion

By following these steps, you can customize the ‘Places’ entries in the Nautilus sidebar to your preference. Whether you want to remove specific directories or disable all entries, the process is straightforward and easily reversible. Remember to use caution when modifying system files, and always make a backup before making any changes.

How can I access the Nautilus sidebar in Ubuntu?

To access the Nautilus sidebar in Ubuntu, open the file manager by clicking on the Files icon in the dock or by pressing the Super key (Windows key) and searching for "Files". The sidebar will be displayed on the left-hand side of the file manager window.

Can I remove all ‘Places’ entries from the Nautilus sidebar?

Yes, you can remove all ‘Places’ entries from the Nautilus sidebar by disabling them in the user-dirs.conf file. Open the file with a text editor, add the line enabled=false, save the file, and run the xdg-user-dirs-gtk-update command to apply the changes.

How can I enable a previously disabled ‘Places’ entry in Nautilus?

To enable a previously disabled ‘Places’ entry in Nautilus, you need to edit the user-dirs.conf file again. Open the file, remove the line enabled=false or change it to enabled=true for the specific entry you want to enable, save the file, and run the xdg-user-dirs-gtk-update command to apply the changes.

Can I customize the names of the ‘Places’ entries in Nautilus?

Yes, you can customize the names of the ‘Places’ entries in Nautilus. Open the user-dirs.dirs file in a text editor, locate the line corresponding to the entry you want to rename, modify the directory path, and save the file. The new name will be reflected in the Nautilus sidebar after running the xdg-user-dirs-gtk-update command.

Is it possible to add new custom entries to the Nautilus sidebar?

Yes, you can add new custom entries to the Nautilus sidebar. Open the user-dirs.dirs file in a text editor, add a new line following the format XDG_*_DIR="$HOME/CustomDirectoryName", replace CustomDirectoryName with your desired directory name, save the file, and run the xdg-user-dirs-gtk-update command to apply the changes. The new entry will appear in the Nautilus sidebar.

Leave a Comment

Your email address will not be published. Required fields are marked *