
{"id":44039,"date":"2023-05-30T13:57:25","date_gmt":"2023-05-30T13:57:25","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=44039"},"modified":"2025-04-01T05:16:17","modified_gmt":"2025-04-01T05:16:17","slug":"open-terminal-other-emulator-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/05\/open-terminal-other-emulator-ubuntu\/","title":{"rendered":"Add &#8216;Open in Terminal&#8217; for other Terminal Apps in Ubuntu 24.04\/22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-38554\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/nautilus-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p><b>Want to let &#8220;Open in Terminal&#8221; context (right-click) menu option work for another terminal emulator? Here&#8217;s an extension to do the similar job for Nautilus.<\/b><\/p>\n<p>When right-clicking on either a folder or blank area in file manager, there&#8217;s an &#8220;Open in Terminal&#8221; menu option to launch system default terminal with that folder as working directory.<\/p>\n<p>The option in Ubuntu so far is provided by the built-in <code>gnome-terminal<\/code> package. Meaning no way to use the option for another terminal emulator. However, there&#8217;s an <a href=\"https:\/\/github.com\/Stunkymonkey\/nautilus-open-any-terminal\" target=\"_blank\" rel=\"noopener\">extension<\/a> can add similar option to open terminal from in-side folder.<\/p>\n<p>And not only for Gnome Terminal, the extension supports many other terminal emulators:<\/p>\n<ul dir=\"auto\">\n<li><code>alacritty<\/code><\/li>\n<li><code>blackbox<\/code><\/li>\n<li><code>cool-retro-term<\/code><\/li>\n<li><code>deepin-terminal<\/code><\/li>\n<li><code>foot<\/code>\/<code>footclient<\/code><\/li>\n<li><code>guake<\/code><\/li>\n<li><code>hyper<\/code><\/li>\n<li><code>kermit<\/code><\/li>\n<li><code>kgx<\/code>\u00a0(GNOME Console)<\/li>\n<li><code>kitty<\/code><\/li>\n<li><code>konsole<\/code><\/li>\n<li><code>mate-terminal<\/code><\/li>\n<li><code>mlterm<\/code><\/li>\n<li><code>qterminal<\/code><\/li>\n<li><code>sakura<\/code><\/li>\n<li><code>st<\/code>\u00a0<a href=\"https:\/\/st.suckless.org\/patches\/workingdir\/\" rel=\"nofollow\">properly patched<\/a><\/li>\n<li><code>tabby<\/code><\/li>\n<li><code>terminator<\/code><\/li>\n<li><code>terminology<\/code><\/li>\n<li><code>termite<\/code><\/li>\n<li><code>tilix<\/code> (the package itself supports this stuff)<\/li>\n<li><code>urxvt<\/code><\/li>\n<li><code>urxvtc<\/code><\/li>\n<li><code>wezterm<\/code><\/li>\n<li><code>xfce4-terminal<\/code><\/li>\n<\/ul>\n<p>The extension adds the menu option &#8220;<code>Open XXX Here<\/code>&#8220;, with XXX changes automatically according which terminal emulator is in use.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-anyterminal.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44040\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-anyterminal-600x263.webp\" alt=\"\" width=\"600\" height=\"263\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-anyterminal-600x263.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-anyterminal-300x132.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-anyterminal-768x337.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/open-anyterminal.webp 953w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>How to Install the Nautilus Extension<\/h3>\n<p>This tutorial is tested and works in Ubuntu 22.04, Ubuntu 24.04. It should also work in Fedora Workstation and other Linux with GNOME &amp; Nautilus.<\/p>\n<h4>Option 1: Use .deb package<\/h4>\n<p>The extension now offers pre-build <code>.deb<\/code> package for Debian\/Ubuntu and their based systems.<\/p>\n<p>First, go to Github releases page via the link below:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/Stunkymonkey\/nautilus-open-any-terminal\/releases\" target=\"_blank\" rel=\"noreferrer noopener\">Download Nautilus open any terminal<\/a><\/div>\n<\/div>\n<p>Then, select download either &#8220;nautilus extension&#8221; for default GNOME desktop or &#8220;caja extension&#8221; for MATE desktop. Finally, double-click to open it with either AppCenter or Software Install depends on your Ubuntu edition, then click install.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/download-openanyterminal.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-48555\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/download-openanyterminal-700x455.webp\" alt=\"\" width=\"610\" height=\"397\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/download-openanyterminal-700x455.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/download-openanyterminal-300x195.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/download-openanyterminal-768x499.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/download-openanyterminal.webp 1115w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h4>Option 2: Use Python package<\/h4>\n<p><b>1.<\/b> First, press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal. Then run command to install git and python3-nautilus package:<\/p>\n<pre>sudo apt install python3-nautilus python3-pip gir1.2-gtk-4.0<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-pip3.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46504\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-pip3-700x404.webp\" alt=\"\" width=\"610\" height=\"352\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-pip3-700x404.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-pip3-300x173.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/apt-pip3.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>2.<\/b> Then, install the extension as pip package, by running command:<\/p>\n<pre>pip install nautilus-open-any-terminal --break-system-packages<\/pre>\n<p><i>The <code>--break-system-packages<\/code> is required for Ubuntu 24.04 due to policy change. Skip it in 22.04<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/pip-install-nautilusanyterminal.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46505\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/pip-install-nautilusanyterminal-700x428.webp\" alt=\"\" width=\"610\" height=\"373\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/pip-install-nautilusanyterminal-700x428.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/pip-install-nautilusanyterminal-300x183.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/pip-install-nautilusanyterminal.webp 722w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><b>3.<\/b> Finally, run command to generate the dconf configuration file.<\/p>\n<pre>glib-compile-schemas ~\/.local\/share\/glib-2.0\/schemas\/<\/pre>\n<h3>Apply and Set your Terminal Emulator<\/h3>\n<p>After installed the extension, apply it by running command to quit Nautilus:<\/p>\n<pre>nautilus -q<\/pre>\n<p>Then, open &#8220;<b>Dconf Editor<\/b>&#8221; (<i>install it from Ubuntu Software or App Center<\/i>) and navigate to &#8216;<i>com\/github\/stunkymonkey\/nautilus-open-any-terminal<\/i>&#8216;. Finally, set the value of &#8216;terminal&#8217; to tell which terminal emulator to use.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44043\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal-600x323.webp\" alt=\"\" width=\"600\" height=\"323\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal-600x323.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal-300x161.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal-768x413.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal-1536x826.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal-1320x710.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/05\/dconf-editor-openanyterminal.webp 1818w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>You can of course choose another terminal emulator by running command (replace <code>kgx<\/code> with yours terminal app):<\/p>\n<pre>gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal \"kgx\"<\/pre>\n<p><i>Tip: You may also remove the built-in &#8216;Open in Terminal&#8217; option by running command:<\/i><\/p>\n<pre>sudo apt remove nautilus-extension-gnome-terminal<\/pre>\n<p>&nbsp;<\/p>\n<h3>Uninstall<\/h3>\n<p>To get rid of the context menu option, simply open terminal (Ctrl+Alt+T) and run command to uninstall the python package:<\/p>\n<pre>pip uninstall nautilus-open-any-terminal --break-system-packages<\/pre>\n<p>Skip <code>--break-system-packages<\/code> for Ubuntu 22.04, and run <code>nautilus -q<\/code> to apply changes.<\/p>\n<p>For the deb package, use the command below instead to uninstall:<\/p>\n<pre>sudo apt remove nautilus-extension-any-terminal<\/pre>","protected":false},"excerpt":{"rendered":"<p>Want to let &#8220;Open in Terminal&#8221; context (right-click) menu option work for another terminal emulator? Here&#8217;s an extension to do the similar job for Nautilus. When right-clicking on either a folder or blank area in file manager, there&#8217;s an &#8220;Open in Terminal&#8221; menu option to launch system default terminal with that folder as working directory. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":38554,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[428,243],"class_list":["post-44039","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-nautilus","tag-terminal"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44039","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=44039"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/44039\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/38554"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=44039"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=44039"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=44039"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}