No way to execute a script in the terminal

Bug #1099194 reported by Simon
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Files
Won't Fix
Wishlist
Unassigned
Nautilus Terminal
Invalid
Undecided
Unassigned

Bug Description

Double clicking on an executable script in Files executes it in the background.
There should be a way to execute it in the terminal (maybe a "Terminal" entry in "Open with") to see the output of the script.

Cody Garver (codygarver)
Changed in pantheon-files:
milestone: none → 0.2
Revision history for this message
Cody Garver (codygarver) wrote :

I seem to recall this is a bug with one of File's underlying technologies, anyone have more details?

Changed in pantheon-files:
importance: Undecided → Low
status: New → Confirmed
importance: Low → Wishlist
Changed in pantheon-files:
status: Confirmed → Triaged
Changed in pantheon-files:
status: Triaged → In Progress
importance: Wishlist → Medium
assignee: nobody → Jeremy Wootten (jeremywootten)
Changed in pantheon-files:
status: In Progress → Confirmed
assignee: Jeremy Wootten (jeremywootten) → nobody
Changed in pantheon-files:
status: Confirmed → In Progress
assignee: nobody → Jeremy Wootten (jeremywootten)
Revision history for this message
Salvatore Merone (sal-merone) wrote :

Executing scripts by double-clicking is a potentially dangerous behaviour. I suggest to add a "Run" right-click menu entry and some sort of modifier to that entry (Example: Alt+RClick shows "Run in terminal" instead of "Run").

Revision history for this message
Zisu Andrei (matzipan) wrote :

Using the same logic, this should also apply to binaries, so all executable files.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Branches unlinked and bug marked "Will not Fix" in Files. The simplest way to achieve this is to add a contract in the form:

[Contractor Entry]
Name=Run in Terminal
Icon=terminal
Description=Do something to the selected entry(s)
MimeType=application/x-sh;application/x-executable;
Exec=pantheon-terminal -e %f
Gettext-Domain=pantheon-terminal

An option "Run in Terminal" then appears in the context menu when an appropriate file is right-clicked.

It is debatable whether this should be supplied as standard but that is not a Files issue.

Changed in pantheon-files:
status: In Progress → Won't Fix
importance: Medium → Wishlist
assignee: Jeremy Wootten (jeremywootten) → nobody
milestone: feature-future → none
Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

User contracts should be added to ~/.local/share/contracts with a filename ending in .contract.

Revision history for this message
Damien (youpla-b) wrote :

I would have hoped it could have been set as default, instead of being an undiscoverable option.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

Damien: You may have a point but that would be a bug in Terminal, which is responsible for publishing its contracts, I think.

Revision history for this message
Fabien LOISON (flozz) wrote :

@youpla-b Why you added this issue to the Nautilus Terminal project? I think it is not related.

Revision history for this message
Damien (youpla-b) wrote :

It was based on the suggestion from post #7, but I don't know either.

Revision history for this message
Fabien LOISON (flozz) wrote :

I think #7 is about GNOME Terminal project and not Nautilus Terminal ;)

Changed in nautilus-terminal:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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