I wanted to move some of the Nautilus scripts, like print, edit as root, convert to pdf from the "Scripts" folder in the contextual menu (~/.local/share/nautilus/scripts
) to their own entry.
When I select a sample file and run the script "edit as root" from the contextual menu>Scripts>Edit
as root entry, it works.
#!/bin/bash
path=$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS
path=${path%?}
quoted="file://$path"
gksu gedit "$@"
When I create a Nautilus-Actions Configuration Tool
entry for the same exact script (same file, same location) and select the same exact sample file, it opens a blank file.
I've tried this with printing too. Same result. It has something to do with designating the file that is selected. But that seems weird since I am running the same exact script, just via Nautilus-Actions.
How do I tell Nautilus-Actions
to run the scripts, using the selected file?