GNOME Bugzilla – Bug 313023
smarter handling of executable textfiles
Last modified: 2017-04-05 19:27:10 UTC
Sorry if this already has been reported. I searched lots and couldn't find it so I hope it hasn't. On Windows shares all files have +x set so if you click on them Nautilus asks you if you want to execute them. Even HTML files are labelled as executable textfiles. Maybe Nautilus could be a little smarter and check if the first line is #!/bin-something before asking if the file should be executed or viewed?
Thanks for your bug report! Maybe we should only allow to execute application/x-shellscript files.
Manny: Why only application/x-shellscript? Don't you want to allow e.g perl and python apps?
It would be good to allow execute just on lines beginning with a shebang which are executable, i.e. files which can be executed with the correct permissions.
*** Bug 322868 has been marked as a duplicate of this bug. ***
Ubuntu bug about that: https://launchpad.net/distros/ubuntu/+source/nautilus/+bug/14335
Note that this is more elegantly fixed in udisks, please seehttp://bugs.freedesktop.org/show_bug.cgi?id=28075 . I suggest to close this as "wontfix".
I agree, marking as WONTFIX. Reopen if you find that wrong. Also see bug 601736 about making the dialog more user friendly.