Nautilus default behaviour for executable scripts is poor

Bug #1924932 reported by liamdawe
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

This is a papercut / quality of life issue that's really annoying me.

On other file managers, if you set an .sh file as executable, it will offer to do something. With Ubuntu + Nautilus, it always by default just opens it in a text editor. This is really annoying and frankly a bad default to have.

I know there's the right click menu to run as program, but since Ubuntu is trying to appeal to the masses here, good default behaviour is needed IMO.

Example: you download a Linux game from GOG, you make it executable and then you double click to run -> wait a while as text editor tries to load a multiple GB installer .sh script, which is made with MojoSetup (it's a graphical app).

Other file managers first ask what to do with a box like: "run? open as file? run in terminal?". Ubuntu should ideally do this too.

I just don't think auto-opening big .sh executable files by default, in a text editor, is very good for users.

liamdawe (liamdawe)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Rick (rickandtired) wrote :

I agree

I think the default behavior in Nautilus Preferences should be "Ask what to do" for "Executable Text Files"

gsettings set org.gnome.nautilus.preferences executable-text-activation ask

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1433774, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Changed in nautilus (Ubuntu):
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.