{"id":49570,"date":"2025-08-31T07:07:10","date_gmt":"2025-08-31T07:07:10","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=49570"},"modified":"2025-08-31T07:07:10","modified_gmt":"2025-08-31T07:07:10","slug":"install-set-ptyxis-as-default-terminal-in-ubuntu-24-04-22-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2025\/08\/install-set-ptyxis-as-default-terminal-in-ubuntu-24-04-22-04\/","title":{"rendered":"Install &#038; Set Ptyxis as Default Terminal in Ubuntu 24.04 | 22.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-45698\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/ptyxis-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/ptyxis-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/ptyxis-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/ptyxis-logo-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/ptyxis-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/ptyxis-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p><b>Like the new Ptyxis terminal emulator introduced in Ubuntu 25.10, here&#8217;s how to install and set it as default in current Ubuntu 24.04 and 22.04 LTS.<\/b><\/p>\n<p><a href=\"https:\/\/gitlab.gnome.org\/chergert\/ptyxis\" target=\"_blank\" rel=\"noopener\">Ptyxis<\/a> is a modern terminal emulator designed for GNOME with first-class container integration, such as auto-discovery and option to launch a container in new tab, preferences profiles with container integration for Podman, Toolbox, Distrobox, and JHBuild.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49575\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/ptyxis-terminal-700x487.webp\" alt=\"\" width=\"610\" height=\"424\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/ptyxis-terminal-700x487.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/ptyxis-terminal-300x209.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/ptyxis-terminal-768x535.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/ptyxis-terminal-1536x1070.webp 1536w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/ptyxis-terminal-1320x919.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/ptyxis-terminal.webp 2039w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><!--more--><\/p>\n<p>The terminal uses GTK4 + LibAdwaita for its modern user interface well integrated into GNOME. And, it supports configurable keyboard shortcuts, user-installable color palettes, GPU acceleration, integrated developer tool, and more.<\/p>\n<p>Ubuntu 25.10 since snapshot 4 has added this terminal app as a replacement of GNOME Terminal. For current 2 Ubuntu LTS releases, it&#8217;s easy to install through Flatpak via the steps below.<\/p>\n<h3>1. Install Ptyxis<\/h3>\n<p>The latest Ptyxis (48.5 so far) won&#8217;t build in current Ubuntu 24.04 or 22.04 due to outdated GTK4 and libadwaita libraries. User may choose to install it as <a href=\"https:\/\/flathub.org\/apps\/app.devsuite.Ptyxis\" target=\"_blank\" rel=\"noopener\">Flatpak package<\/a>, which runs in sandbox environment.<\/p>\n<p><b>NOTE: This step works only on X86_64 (modern Intel\/AMD) and ARM64 platforms.<\/b><\/p>\n<p>First, press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal. When it opens, run the command below to install the flatpak daemon:<\/p>\n<pre>sudo apt install flatpak<\/pre>\n<p><i>You may run <code>sudo apt update<\/code> to refresh your system package cache, if the last command failed.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45732\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp\" alt=\"\" width=\"610\" height=\"437\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-700x501.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-300x215.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble-768x550.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/apt-flatpak-noble.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Then, install the terminal emulator by running command:<\/p>\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/app.devsuite.Ptyxis.flatpakref<\/pre>\n<p>This will install the app system wide, so all users can access it. For choice, you may add <code>--user<\/code> flag in command to install it for current user only.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49576\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/flatpak-ptyxis-700x507.webp\" alt=\"\" width=\"610\" height=\"442\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/flatpak-ptyxis-700x507.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/flatpak-ptyxis-300x217.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/flatpak-ptyxis-768x556.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/flatpak-ptyxis.webp 786w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Finally, either launch the terminal from menu (log out and back in if app icon not visible) or run <code>flatpak run app.devsuite.Ptyxis<\/code> to start from terminal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-49568\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/launch-ptyxis-gnome.webp\" alt=\"\" width=\"529\" height=\"285\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/launch-ptyxis-gnome.webp 529w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/03\/launch-ptyxis-gnome-300x162.webp 300w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/p>\n<p>And for future updates, run the command below to check &amp; install:<\/p>\n<pre>flatpak update app.devsuite.Ptyxis<\/pre>\n<h3>Step 2: Set Ptyxis as default terminal<\/h3>\n<p>If you would like to make your terminal apps use Ptyxis as default, and <code>Ctrl+Alt+T<\/code> launch this terminal instead of Gnome-Terminal, then run following commands one by one.<\/p>\n<p><b>NOTE 1: Ptyxis has an option in its preferences dialog to set as default, though NOT work in my case.<\/b><\/p>\n<p><b>NOTE 2: This step no longer works for <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2025\/03\/change-default-terminal-ubuntu-2\/\" target=\"_blank\" rel=\"noopener\">Ubuntu 25.04 and later<\/a> due to policy change.<\/b><\/p>\n<p>Ubuntu until 25.04 uses <code>\/etc\/alternatives\/x-terminal-emulator<\/code> symbolic link to determine the default terminal app. To configure it, use <code>update-alternatives<\/code> command to add alternatives and set which to use as default.<\/p>\n<p><b>1.<\/b> First, create a wrapper for Ptyxis executable by running command:<\/p>\n<pre>sudo nano \/usr\/bin\/ptyxis.wrapper<\/pre>\n<p>This command will create a script <code>ptyxis.wrapper<\/code> under <code>\/usr\/bin<\/code> with nano command line text editor.<\/p>\n<p>When it opens, paste the line below, so it will launch Ptyxis with <code>--new-window<\/code> flag.<\/p>\n<pre>#!\/bin\/sh\r\nflatpak run app.devsuite.Ptyxis --new-window<\/pre>\n<p>Finally, press <code>Ctrl+S<\/code> to save and <code>Ctrl+X<\/code> to exit. And, run command below to add executable permission:<\/p>\n<pre>sudo chmod a+x \/usr\/bin\/ptyxis.wrapper<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49584\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/create-ptyxis-wrapper-700x469.webp\" alt=\"\" width=\"610\" height=\"409\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/create-ptyxis-wrapper-700x469.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/create-ptyxis-wrapper-300x201.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/create-ptyxis-wrapper-768x514.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/create-ptyxis-wrapper.webp 978w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>You may skip creating the wrapper, and use <code>\/var\/lib\/flatpak\/exports\/bin\/app.devsuite.Ptyxis<\/code> in next commands. Which however only allows to open a single Ptyxis window when pressing <code>Ctrl+Alt+T<\/code> keyboard shortcut for multiple times.<\/p>\n<p><b>2.<\/b> Next, run command to install Ptyxis as an alternative:<\/p>\n<pre>sudo update-alternatives --install \/usr\/bin\/x-terminal-emulator x-terminal-emulator \/usr\/bin\/ptyxis.wrapper 10<\/pre>\n<p>Here you may replace <code>\/usr\/bin\/ptyxis.wrapper<\/code> with one of the PATH to Ptyxis executable file below. As mentioned, it however allows only one Ptyxis window, unless passing <code>--new-window<\/code> flag.<\/p>\n<ul>\n<li><code>\/var\/lib\/flatpak\/exports\/bin\/app.devsuite.Ptyxis<\/code> for default system-wide installation.<\/li>\n<li><code>$HOME\/.local\/share\/flatpak\/exports\/bin\/app.devsuite.Ptyxis<\/code> if installed the terminal with <code>--user<\/code> flag.<\/li>\n<\/ul>\n<p>Then, run the command below to choose default terminal:<\/p>\n<pre>sudo update-alternatives --configure x-terminal-emulator<\/pre>\n<p>In my case (see the screenshot), type 4 and hit Enter to select Ptyxis.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49583\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/set-ptyxis-wrapper-default-700x528.webp\" alt=\"\" width=\"610\" height=\"460\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/set-ptyxis-wrapper-default-700x528.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/set-ptyxis-wrapper-default-300x226.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/set-ptyxis-wrapper-default.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<h3>Step 3: Add &#8220;Open in Terminal&#8221; Context Menu option for Ptyxis<\/h3>\n<p>If you would like to add &#8220;Open in Terminal&#8221; look-like context menu to open selected folder in Ptyxis, the popular <a href=\"https:\/\/github.com\/Stunkymonkey\/nautilus-open-any-terminal\" target=\"_blank\" rel=\"noopener\">nautilus-open-any-terminal<\/a> extension can do the job for Nautilus (aka GNOME Files).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49581\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/open-in-ptyxis-700x465.webp\" alt=\"\" width=\"610\" height=\"405\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/open-in-ptyxis-700x465.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/open-in-ptyxis-300x199.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/open-in-ptyxis-768x511.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/open-in-ptyxis.webp 1080w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>1.<\/b> First, run command in terminal to install dependency libraries:<\/p>\n<pre>sudo apt install python3-pip python3-nautilus gir1.2-gtk-4.0<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49578\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/apt-python-nautilus-700x431.webp\" alt=\"\" width=\"610\" height=\"376\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/apt-python-nautilus-700x431.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/apt-python-nautilus-300x185.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/apt-python-nautilus-768x473.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/apt-python-nautilus.webp 778w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>2.<\/b> Then, install the extension through pip:<\/p>\n<pre>python3 -m pip install --user nautilus-open-any-terminal --break-system-packages<\/pre>\n<p>The <code>--break-system-packages<\/code> flag is required in 24.04 due to <a href=\"https:\/\/peps.python.org\/pep-0668\/\" target=\"_blank\" rel=\"noopener\">PEP 668<\/a>, though not for 22.04.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49579\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/pip-openanyterminal-700x279.webp\" alt=\"\" width=\"610\" height=\"243\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/pip-openanyterminal-700x279.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/pip-openanyterminal-300x120.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/pip-openanyterminal-768x306.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/pip-openanyterminal.webp 802w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p><b>3.<\/b> After installed the Nautilus extension, run the command below to generate dconf configuration:<\/p>\n<pre>glib-compile-schemas ~\/.local\/share\/glib-2.0\/schemas\/<\/pre>\n<p>Then quit Nautilus to apply changes:<\/p>\n<pre>nautilus -q<\/pre>\n<p><b>4.<\/b> Finally, launch <b>Dconf Editor<\/b> which can be installed from either Ubuntu Software or App Center (filter by Debian package).<\/p>\n<p>Then, navigate to &#8220;com\/github\/stunkymonkey\/nautilus-open-any-terminal&#8221;, and disable default values and set:<\/p>\n<ul>\n<li><b>flatpak<\/b> to &#8216;system&#8217; (or &#8216;user&#8217; if you used <code>--user<\/code> flag when installing Ptyxis).<\/li>\n<li><b>terminal<\/b> to &#8216;ptyxis&#8217;.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-49580\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/nautilus-open-ptyxis-700x475.webp\" alt=\"\" width=\"610\" height=\"414\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/nautilus-open-ptyxis-700x475.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/nautilus-open-ptyxis-300x204.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/nautilus-open-ptyxis-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2025\/08\/nautilus-open-ptyxis.webp 1082w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/p>\n<p>Finally, right-click on any folder or blank area in file manager to see the new option.<\/p>\n<p>And, remove <code>nautilus-extension-gnome-terminal<\/code> package to get rid of the default &#8216;Open in Terminal&#8217; option.<\/p>","protected":false},"excerpt":{"rendered":"<p>Like the new Ptyxis terminal emulator introduced in Ubuntu 25.10, here&#8217;s how to install and set it as default in current Ubuntu 24.04 and 22.04 LTS. Ptyxis is a modern terminal emulator designed for GNOME with first-class container integration, such as auto-discovery and option to launch a container in new tab, preferences profiles with container [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":45698,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[883],"class_list":["post-49570","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-terminal-emulator"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/49570","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=49570"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/49570\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/45698"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=49570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=49570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=49570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}