2

I am on Manjaro with Cinnamon as DE, so I use Nemo as my file manager. Whenever I double-click markdown (.md) files, I get a dialog asking if I want to execute the file or edit in a text editor. The default editor associated with .md is Typora.

I understand that this is partly because the execute flag is set on the file; if I remove the execute permission the file opens in Typora like I expect with no dialog prompt. However, this is not practical as a solution:

  • Seems like Nemo creates files with execute set by default, so disabling it every time is tedious.
  • I notice that some file systems don't seem to allow unsetting the execute flag, such as encrypted volumes.
  • I may want to keep a file executable and have the default behavior be opening it in an editor.

Surely somewhere there must be a setting to the tune of "Default behavior for executable files: Display/Run/Ask". Where is this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.