Automatic execution of scripts on click or double click cannot be changed

Bug #1669996 reported by cipricus on 2017-03-04
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Files
Confirmed
High
Unassigned

Bug Description

The executable scripts are always executed if clicked in Pantheon Files, even if the default application to be used is changed for them to a text editor under *Properties-Open with*.

I have noticed this behavior only for executable scripts (while the opposite happens for desktop files after February 2017 update: http://elementaryos.stackexchange.com/q/10952/170, which by default are open in a text editor).

This is also the cause why the system will not ask before running script from Pantheon Files (http://elementaryos.stackexchange.com/q/4256/170) even if a zenity script is added in a desktop file used for that purpose as default application (http://elementaryos.stackexchange.com/a/10358/170) (which works with other file managers).

This behavior could be dangerous (given the reason why desktop files are not automatically executed after February 2017 update).

Automatic execution of scripts on click or double click should not be the default action or at least it should be possible to change it.

cipricus (cipricus) on 2017-03-04
summary: - Executable files are always executed no matter the settings
+ Automatic execution of scripts on click or double click cannot be
+ changed
Changed in pantheon-files:
status: New → Confirmed
importance: Undecided → High
Changed in pantheon-files:
status: Confirmed → In Progress
assignee: nobody → Jeremy Wootten (jeremywootten)
milestone: none → juno-beta1
Daniel Fore (danrabbit) wrote :

Probably better to fix this by always opening scripts for editing and only executing from the right click menu. I don't think we need yet another dialog in the mix

Daniel Fore (danrabbit) on 2017-05-06
Changed in pantheon-files:
status: In Progress → Confirmed
Davide Aguiari (gorghino) wrote :

This happens to me if I dclick on python scripts even I choose Sublime as default app.
If I run them, something odd happens:
Cursor becomes "+" (I think capture screen like)
Home folder got populated by files which names are the python's imports names (files like traceback, socket, time, struct etc.).
Every file is a ps file with windows screenshots inside.

Jeremy Wootten (jeremywootten) wrote :

This will be revisited once Files has been transferred to GitHub.

Changed in pantheon-files:
assignee: Jeremy Wootten (jeremywootten) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers