GNOME Bugzilla – Bug 642511
nautilus-autorun-software should execute autorun.sh using /bin/sh
Last modified: 2011-09-07 20:02:33 UTC
Created attachment 181061 [details] [review] Patch for GIT revision 8f9dda634d5143dda92a8bf987ca083225ab174c Currently it tries to execute the file directly. In my interpretation, changing the behaviour to executing /bin/sh with autorun.sh as a parameter would neither do any harm, because the extension .sh should only be used for shell scripts, nor would it violate the specification [1]. Implementing this change would enable users to use autorun.sh scripts on FAT-formatted media (like my phone's sd-card). Currently, since FAT does not support execution bits, autorun fails. Patch attached, but it's untested (I don't have the gnome build environment installed on my pc. Sorry) [1] http://specifications.freedesktop.org/autostart-spec/autostart-spec-latest.html
Thanks for the patch, this is a good idea. I pushed your patch to git master.