Custom Shortcut to open a file in Nautilus

I have this very simple use case where i just want to add a keyboard shortcut to Open an image in Gimp. I can’t find any options or extensions that can help me with that.

Hi.

You can set GIMP to open all images by default, then Return will just work.

If you still want another app as default, then the only option is a custom shortcut for a custom script which opens the file in GIMP. gnome - Keyboard shortcut for open terminal Nautilus >= 3.16 - Ask Ubuntu

1 Like

Thank you, that worked for me.
I am pasting the code from I have in file ~/.local/share/nautilus/scripts/GIMP so that someone else in the future might find this helpful.

#!/bin/sh
array="${@}"
gimp $array

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.