When using Linux for the very first time how many of us understood terms such as 'text/<anything>', enter a shell command, symlink, etc? How many of us knew where the applications are stored?
Probably none.
The following adds an entry"Open With Menu" to ROX-Filer (via right-click-->Send To). Using it automatically opens three windows:
- Shows the icons for apps installed in the system
- Opens at the Send To directory for apps that work with the selected file
- Displays a step-by step guide on what to do
Install the Script
- Download open-with-menu.sh.zip attached at the foot of this post
- As root extract it to /usr/local/bin/open-with-menu.sh
- Download open-with-menu.png.zip attached at the foot of this post
- As root extract it to /usr/share/pixmaps/open-with-menu.png
Set Up the Menu Entry in ROX-Filer
Do the following as your normal user in ROX-Filer
- Open the directory /home/USERNAME/.config/rox.sourceforge.net/SendTo/
- Drag-n-drop /usr/local/bin/open-with-menu.sh to it and create a symlink
- Right-Click on the symlink-->Rename it Open With Menu
- Right-Click on the symlink-->Set icon. Select Only for the file...
- Drag-n-drop /usr/share/pixmaps/open-with-menu.png to the set icon box
To use, highlight a file, right-click-->Send To-->Open With Menu and follow the steps in the guide.
Abstact from guide
A screen shot of it in actionOpen With Menu Guide
Purpose
Add one or more apps to the ROX-Filer right-click menu via drag-and-drop.
Summary
In ROX-Filer, right-clicking on a file displays a pop-up menu. At the head of the
menu is an area that shows apps added by you, the user. Choosing one of
these apps opens it with the selected file.
The apps displayed in this pop-up menu change depending upon the type of file
you right-clicked on. Only apps that work with the type of file selected are
displayed.
It is possible to have multiple apps in the menu that will work on a single
type of file. For example, if your photos are jpeg type files, you might have
an app to view image files and a different app to edit them.
Example
Add two apps that can open a file named filename.jpeg
1. Highlight a jpeg file in ROX-Filer
2. Right-Click-->Send To-->Open With Menu
3. Drag-and-drop mirage.desktop (a viewer) and mtpaint.desktop (an editor)
from the window named /usr/share/applications
to the window named ~/.config.sourceforge.net/SendTo/.image_jpeg
4. Choose Link (relative) when prompted
5. On the mirage.desktop link, right-click-->Rename
6. Rename mirage.desktop to Open With Mirage
7. Repeat renaming mtpaint.desktop to Open With mtPaint
A right-click on a jpeg or jpg file will display both apps at the head of the pop-up menu.
Apps can also be removed from the pop-up menu.
Example
Remove"Open With mtPaint" for jpeg type files
1. Highlight a jpeg file in ROX-Filer
2. Right-Click-->Send To-->Open With Menu
3. In the window named ~/.config.sourceforge.net/SendTo/.image_jpeg
Delete"Open with mtPaint"
Edit: 2013-Sep-11 uploaded script again with minor revision to place guide in /tmp