Jeremy Wootten
Jeremy Wootten
Would __all__ scripts need to be run in a Terminal? Also scripts are themselves executables rather than a content type to opened in another application. To execute in Terminal you...
In that case I think we will need another desktop file analagous to `open-pantheon-terminal-here.desktop` for folders. That is how Terminal shows up in the "Open in ..." submenu when right...
>Is there any workaround I can use in order to let my users execute scripts in the folder they via the Files UI. There seems to be a word missing....
The command-line `io.elementary.terminal -w -x ` does work so you may be able to create a desktop file for the script that takes a folder mimetype and executes such a...
I wasn't sure whether that Exec line would work in a desktop file - but it did work for me when run from a terminal (other than Terminal). I'll see...
This desktop file allows a script to run in the terminal. ``` [Desktop Entry] Name=Terminal TryExec=io.elementary.terminal Exec=io.elementary.terminal -x %u Icon=utilities-terminal Type=Application StartupNotify=true X-GNOME-Gettext-Domain=io.elementary.terminal NoDisplay=true MimeType=application/x-shellscript; ``` Save in `/usr/share/applications` as...
If have pushed a commit to https://github.com/elementary/terminal/pull/477 that makes the above desktop file work as desired - i.e. the Terminal opens at the folder containing the script when opened with...
This contract file will also work __after merging elementary/terminal#477__: ``` [Contractor Entry] Name=Run in Terminal Description=Run the selected script in the terminal MimeType=application/x-shellscript Exec=io.elementary.terminal -x %f Gettext-Domain=io.elementary.terminal ``` This file...
>As I understand what you write, this is expected to fail without a change to Terminal. Is this correct? Yes, at the moment you would have to build and install...
> Would it be possible to execute it with "xterm" (or some other terminal) instead and then have it use the correct CWD? You could try it - you would...