Skip to content

Instantly share code, notes, and snippets.

@benzntech
Last active July 1, 2020 23:47
Show Gist options
  • Save benzntech/39f98c5cc1af0c046e32bb41cb8b7b64 to your computer and use it in GitHub Desktop.
Save benzntech/39f98c5cc1af0c046e32bb41cb8b7b64 to your computer and use it in GitHub Desktop.
elementaryOS Open Terminal Here | File Manager UX Hack
To open a command line shell in the pantheon File Browser in elementary OS, you need to create a text file and paste code into it.
The location of the file which needs to be created is:
/usr/share/contractor/openinterminal.contract
One command you can use to edit it is:
sudo nano /usr/share/contractor/openinterminal.contract
On elementary OS 5.0 Juno
[Contractor Entry]
Name=Open terminal here
Icon=terminal
Description=Open terminal here
MimeType=inode;application/x-sh;application/x-executable;
Exec=io.elementary.terminal -w %U
Gettext-Domain=io.elementary.terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment