I want to know how I can add action when the user right-clicks on specific MIME-types or folders without the use of nautilus-actions.
I would be happy if this was possible using Nautilus Scripts as well, but I want them to show up only at specific mime types.
I believe it is possible: Ubuntu One does it.
Best Answer
You can use Nautilus extension API for that. In particular I recommend Nautilus-Python.
Here's a simple example that adds a context menu item for MIME type
text/plain
:You'll need to install
python-nautilus
andgir1.2-gconf-2.0
packages and place the above Python script in~/.local/share/nautilus-python/extensions/
.