I've installed Pantheon File manager in Ubuntu OS. But ‘Open in Terminal’ is not available in Context menu. How to add it to Context menu?
Asked
Active
Viewed 2,133 times
1
-
Please write the solution as an answer. Edit the question to something like "How to add open in terminal in Pantheon fules?" – Archisman Panigrahi Sep 26 '22 at 01:49
-
1This looks like an answer but you've written it as a question. Elementary is off-topic here (covered at https://elementaryos.stackexchange.com/) as it's not Ubuntu, nor flavor of Ubuntu. If you want the Ubuntu question/answer to live on this site, please limit it to Ubuntu, and write a question, then please answer your own question – guiverc Sep 26 '22 at 01:49
-
2@guiverc In the beginning of the post, op explains how to install Pantheon files in Ubuntu. The post (once properly written as an question/answer) is on topic in this site. – Archisman Panigrahi Sep 26 '22 at 01:54
-
I realize/saw that, but to me it's still written as two questions, one part belongs on this site (relating to Ubuntu), and the Elementary details (off-topic here) belong on https://elementaryos.stackexchange.com/ where it is on-topic. @ArchismanPanigrahi (my 2c, but I'm not a mod here) – guiverc Sep 26 '22 at 01:56
-
@AKB1794 For this question not to be removed from the site you need to remove the info about the off topic OS. Elementary OS is off topic on this site. – David Sep 26 '22 at 05:10
-
I'm talking how we can use use pantheon-files on Ubuntu with with "context menu" for "Open terminal Here". So, how is it off topic? It's defiantly on topic. Thanks. – BKumarAtanu Oct 01 '22 at 18:46
1 Answers
1
N.B. install Install pantheon file manager on Ubuntu
sudo add-apt-repository ppa:elementary-os/daily
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install pantheon-files
Now,
Add ‘Open in Terminal’ edit the file or create using any text editor vi, nano, gedit, kate etc. Here I'm using gedit.
sudo gedit /usr/share/contractor/openinterminal.contract
and add following code for elementery OS.
[Contractor Entry]
Name=Open in terminal
Icon=terminal
Description=Open in terminal
MimeType=inode;application/x-sh;application/x-executable;
Exec=pantheon-terminal -d %U
Gettext-Domain=pantheon-terminal
of if you use gnome-terminal
then this,
[Contractor Entry]
Name=Open in terminal
Icon=terminal
Description=Open in terminal
MimeType=inode;application/x-sh;application/x-executable;
Exec=gnome-terminal --working-directory %U
Gettext-Domain=gnome-terminal
or, if you use konsole
then use this,
[Contractor Entry]
Name=Open in terminal
Icon=terminal
Description=Open in terminal
MimeType=inode;application/x-sh;application/x-executable;
Exec=konsole --workdir %U
Gettext-Domain=konsole
Save the file. Logout and login or restart.

BKumarAtanu
- 29