Re: Easy way to add new right-click context menue entries to Nautilus


On 16 March 2015 at 09:26, Ben Stover <bxstover yahoo co uk> wrote:

Maybe this is already somehow possible or can be implemented in the next release?

Yes, it's already implemented: it's called "Nautilus Actions", which
is an extension to Nautilus itself — which does the work of exposing
extension points for this reason. You can also easily write an
extension yourself that lets you add actions to the context menu.
Nautilus is already fairly extensible through the extension API, so I
doubt upstream is going to add command line switches (which are hard
to even know about) for running random actions with random command
line arguments.

All your examples also seem to stem from a poorly integrated system.
For instance:

  nautilus -addmenu "Edit with gedit" "gedit %1" FILES

This is already handled by the application's supported MIME type; I
can select files and use 'Open With', and select an application to be
the default for that kind of type.

The other example:

  nautilus -addmenu "Extract into folder ..." "p7zip -e %1"  "*.7z
*.zip *.rar *.tar *.bzip *.gz"

Is handled fairly well by using File Roller; also, where would the
output for that command go, in case of error? It's better to have a
proper application handle this kind of things.

If it's complicated to handle on Solaris, then you should probably
talk to the maintainer of the Solaris packaging of Nautilus and
eventual extensions.


[ ] ebassi [ gmail com]

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]