1

Nautilus has this setting to either 'run' or 'view' executable text files (or 'ask').

How can I keep the 'run' context menu entry for the files in question when the Nautilus setting is set to 'view'? (so basically having both options available right in the context menu)

br4nnigan
  • 183
  • 8

1 Answers1

1

Well at first I looked into nautilus-python as suggested here. However the sparse documentation left me unsatisfied with being unable figure out how to determine position within the context menu and setting a context (file/mime type).

I ended up with going with a custom script as suggested here.

Creating this file:

~/.local/share/nautilus/scripts/Run

#!/bin/sh
eval "./$1"

Make it executable with chmod +x ~/.local/share/nautilus/scripts/Run

Result: enter image description here

I'm sure you know how to improve this so please comment!

br4nnigan
  • 183
  • 8