ROX-Filer: How to add an image processing application to the right-click menu
This worked-out example concerns fotoxx (GTK3) for Fatdog64 900 in response to this question.
General method (applied example further down):
-
Create a folder named
.image
in your rox "SendTo" configuration folder (see the second code block further down). Rox interprets this folder as a bridge between icons of image files and image applications. -
Create a folder named
IMAGE
in your rox "SendTo" configuration folder. This folder will visually group the image processing applications that your will want to add in the future. It's for keeping the right-click menu tidier. -
Create a symbolic link to the
.desktop
file of an image application from a new file in theIMAGE
folder. The name of the new file becomes the label of the new submenu entry. System-wide.desktop
files are normally found in/usr/share/applications
, sometimes in/usr/local/share/applications
.
________
Example for fotoxx (GTK3)
Note: this example starts by creating a private .desktop
file for fotoxx. This step is peculiar to fotoxx (GTK3) as discussed in the other thread. Also the Exec=
line is peculiar to that thread. Generally speaking you will simply link to a pre-existing .desktop
file.
Create file /root/.local/share/applications/fotoxx_gtk3.desktop with the following contents:
Code: Select all
[Desktop Entry]
Name=fotoxx gtk3
GenericName=Photo Editor
Comment=Edit photos and manage collections
Categories=Graphics;Photography;
Type=Application
Terminal=false
MimeType=image/bmp;image/gif;image/tiff;image/jpeg;image/png;image/webp;
Exec=env CLUTTER_BACKEND=x11 /usr/bin/fotoxx %F
Icon=/usr/share/fotoxx/icons/fotoxx.png
In a terminal run the following commands:
Code: Select all
mkdir -p "/root/.config/rox.sourceforge.net/SendTo/.image/IMAGE/fotoxx gtk3"
ln -sf /root/.local/share/applications/fotoxx_gtk3.desktop "/root/.config/rox.sourceforge.net/SendTo/.image/IMAGE/fotoxx gtk3"
Now when you right-click the icon of an image file in rox, you will see the new menu entry IMAGE
, which leads to its own submenu with fotoxx gtk3
inside.
You can add more image programs to the IMAGE
submenu by symbolically linking their desktop files.