In principle, one can add items to the right-click menu of a Dash launcher in Gnome-Shell by defining extra "Desktop Actions" in the .desktop file. To see this working, copy the .desktop file of Files (Nautilus),
/usr/share/application/org.gnome.Nautilus.desktop to your hidden folder
.local/share/applications. After that, you can edit the local desktop file without the need to be root and without affecting other users of your system. This local copy will replace the system wide version on your launcher.
If you open your local
.local/share/application/org.gnome.Nautilus.desktop file in a text editor, you will already see an example of such action at the end of the file:
[Desktop Action new-window]
This action represents the "New Window" item in the right-click menu of the launcher. Note that this action is declared earlier in the file, on the line
Thus, you easily can add your custom action:
[Desktop Action places-documents]
- Name the action like you want. I choose
- The 'Name=' item is what appears in the menu.
- You need to specify the full pathname: this mechanism apparently does not support shell variables ($HOME) or shell expansion (
~). Thus, substitute your actual login instead of
Add your action to the
We would be ready if it were not that apparently, the command to open a folder will not work. At least it did not for me. This is apparently due to nautilus communicating through dbus. After changing the line
DBusActivatable to false, it works for me:
I do not know potential side effects of disabling the communication of Gnome Shell with nautilus through dbus. As long as you do not encounter side effects that are unacceptable to you, you will be good to go.