Not long ago, I was faced with the need to add a button to create a new tab on the main panel of Nautilus, the file manager of the GNOME desktop environment. Search in the settings did not give anything, because I had to rummage through the Internet.
In the end, I found a solution to this problem, albeit not in a user friendly way.
The sequence of actions is as follows:
')
1. Open under the root of any text editor that you like.
2. Open the file
/usr/share/nautilus/ui/nautilus-navigation-window-ui.xml3. Scroll down to the beginning of the section
<toolbar name = "Toolbar">4. Add the necessary elements inside this section.
5. Log out of your session and log in again (Log out -> Log in) in order for the changes to take effect.
(Note from Torm : you can not leave the session, but simply restart Nautilus. You can do this, for example, with the command killall nautilus )Little explanation
This file is a regular xml file (as can be seen from the extension), which can be edited by hand. He is responsible for the graphical navigation in Nautilus.
The content of the
<toolbar name = "Toolbar"> section is responsible for filling the panel (as the name suggests - the toolbar).
The element itself has the following form:
<toolitem name = " display name " action = " action to be taken " />For example, in my case with a new tab, I added the following line:
<toolitem name="New Tab" action="New Tab"/>
If you want to add a vertical separator (separator), then you just need to insert the
<separator /> element among the other elements:
...
<toolitem name="Computer" action="Go to Computer"/>
<separator/>
<toolitem name="Search" action="Search"/>
...
I added such elements to the heap:
<toolitem name="Cut" action="Cut"/>
<toolitem name="Copy" action="Copy"/>
<toolitem name="Paste" action="Paste"/>
<toolitem name="Trash" action="Trash"/>
I hope this small topic will help people who want to change the panel in Nautilus.
Post Scriptum: I did not find a graphic way to customize the items on the panel.