It can be made to work as follows.
Remove the Non-Working Entry from the Right-Click Menu
- Move the file
/home/USERNAME/config/rox.sourceforge.net/SendTo/Edit As Root
to the root of your home directory.
Alternatively, delete it as it is not required.
Replace the Non-Working File
- Download the attached file edit-as-root.sh.zip
- As root extract it from the zip archive to /usr/local/bin/edit-as-root.sh
Set Up the Right Click Menu in ROX-Filer
To ROX an executable script and a configuration file are two different types of text file. The following steps create a context sensitive entry for each of them. This approach ensures that the entry is only displayed when a text file is highlighted in ROX-Filer and hidden when a different file type is selected.
Do the following as your normal user in ROX-Filer
- Create a two hidden directories in /home/USERNAME/.config/rox.sourceforge.net/SendTo/
.application_x-shellscript
.text_plain - Open the directory .application_x-shellscript
- Drag-n-drop /usr/local/bin/edit-as-root.sh to it and create a symlink
- Right-Click on the symlink-->Rename it Edit as root (i.e. no hyphens or .sh)
- Right-Click on the symlink-->Set icon. Select Only for the file...
- Drag-n-drop the icon file /usr/share/pixmaps/leafpad.png to the set icon box
- Open the directory .text_plain. Repeat steps 3 to 6 inclusive.