How can I access the current image file path in order to use it in a new custom script?

Asked by Steve Wilson

Not a bug! I want to install a new script to open the currently-displayed image in a particular program. How can I access its file path please? I've already tried

shotwell $Name

for example, and a few other wild guesses.

Many thanks ...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gthumb Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Nautilus-scripts will help here . I assume you want this from the default file manager in Ubuntu

Revision history for this message
Steve Wilson (ed0cbaf) said :
#2

Sorry not to have made myself clearer. My query appertained to gthumb. In that program, the user can open the currently-displayed image in GIMP simply by hitting the 'g' key. I'd imagine the underlying code runs a bash command ...

gimp <path to file>

I would like to add a custom script (Settings/Personalize) to open said file in shotwell. So I need to access the path of that file. Does the code make this path available to the hoi polloi?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#3

You probably better ask at the source where the development happens - https://wiki.gnome.org/Apps/Gthumb

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4
Revision history for this message
Steve Wilson (ed0cbaf) said :
#5

Thanks Manfred Hampl, that solved my question.