How to remove the "Entire network" and "Trash" entries from the left side panel

Asked by Ð.Sp!dér

How do I remove - or at least hide them ? There's no option in Preferences, no tweak, no file to edit (that I could find). Only thing I DID manage to find was:

sudo nano /usr/share/nautilus/ui/nautilus-navigation-window-ui.xml

(Network, Trash and Templates)

Unfortunately it just removes them from the "Go" menu, not from the left side panel. Thank you for your help.

Question information

Language:
English Edit question
Status:
Answered
For:
nautilus-elementary Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Massimo Mund (qos) said :
#1

Take a look at nautilus-places-sidebar.c and the function 'update_places'. Looks promising :)

For e.g.: to remove the network entry:

Search for this:
mount_uri = "network:///"; /* No need to strdup */
remove it until:
g_free (location);

This should do the job. Others the same way ...

Can you help with this problem?

Provide an answer of your own, or ask Ð.Sp!dér for more information if necessary.

To post a message you must log in.