{"id":1503,"date":"2013-08-30T11:47:58","date_gmt":"2013-08-30T11:47:58","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=1503"},"modified":"2013-09-28T02:01:21","modified_gmt":"2013-09-28T02:01:21","slug":"add-open-in-terminal-to-pantheon-context-menu-in-elementary-os","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2013\/08\/add-open-in-terminal-to-pantheon-context-menu-in-elementary-os\/","title":{"rendered":"Add &#8216;Open in Terminal&#8217; to Pantheon Context menu in Elementary OS"},"content":{"rendered":"<p>Are you using the Elementary OS instead of Ubuntu? Well, here I&#8217;ll show you how to add the &#8216;Open in terminal&#8217; option to the Pantheon file manager right-click menu. So that you can quickly open terminal and automatically navigate to the current directory in Pantheon.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/Open-in-terminal-elementaryos.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/Open-in-terminal-elementaryos.jpg\" alt=\"open in terminal for pantheon\" width=\"468\" height=\"244\" class=\"aligncenter size-full wp-image-1504\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/Open-in-terminal-elementaryos.jpg 468w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2013\/08\/Open-in-terminal-elementaryos-300x156.jpg 300w\" sizes=\"auto, (max-width: 468px) 100vw, 468px\" \/><\/a><\/p>\n<p>To get started, use your favorite editor to create the config file <b>\/usr\/share\/contractor\/openinterminal.contract<\/b> and edit it. I prefer Gedit, so I install it and edit the file via below commands:<\/p>\n<pre>sudo apt-get install gedit\n\nsudo gedit \/usr\/share\/contractor\/openinterminal.contract<\/pre>\n<p>Copy and paste below lines into the file and save it.<\/p>\n<blockquote><p>[Contractor Entry]<br \/>\nName=Open in terminal<br \/>\nIcon=terminal<br \/>\nDescription=Open in terminal<br \/>\nMimeType=inode;application\/x-sh;application\/x-executable;<br \/>\nExec=pantheon-terminal -d %U<br \/>\nGettext-Domain=pantheon-terminal<\/p><\/blockquote>\n<p>Log out and back in and done! Or you need a restart if it doesn&#8217;t work properly.<\/p>","protected":false},"excerpt":{"rendered":"<p>Are you using the Elementary OS instead of Ubuntu? Well, here I&#8217;ll show you how to add the &#8216;Open in terminal&#8217; option to the Pantheon file manager right-click menu. So that you can quickly open terminal and automatically navigate to the current directory in Pantheon. To get started, use your favorite editor to create the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[435,547],"class_list":["post-1503","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-elementary-os-luna","tag-open-in-terminal-for-pantheon"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/1503","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=1503"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/1503\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=1503"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=1503"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=1503"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}