Assign this little shell script to a keyboard shortcut Xfce to open a shell -prompt, then have that file / directory opened by it's native program.
Pretty simple, excellent user-experience!
Thanks to Xfce forum member "ToC" who helped me solve a problem with the script
- Download the shell script to your home folder (or wherever)
- Make it executable
- chmod +x ./openanyfile.sh
- Open your Keyboard Settings: Menu > Settings > Keyboard > Application Shortcuts
- Add a new shortcut with the following command and shortcut:
- exo-open --launch TerminalEmulator /home/david/openfile.sh
- CTRL + SHIFT + ALT + O
Give it a go!
It should be trivial to port this script for GNOME / KDE / Fluxbox / OpenBox etc