Skip to content

Install nautilus-open-any-terminal to open the default terminal from any Nautilus directory#5343

Open
pomartel wants to merge 5 commits intobasecamp:devfrom
pomartel:ghostty-nautilus
Open

Install nautilus-open-any-terminal to open the default terminal from any Nautilus directory#5343
pomartel wants to merge 5 commits intobasecamp:devfrom
pomartel:ghostty-nautilus

Conversation

@pomartel
Copy link
Copy Markdown
Contributor

This fixes Install #5338

I don't know if it's still relevant now that Ghostty is not the default terminal anymore but it resolves the regression. Thanks to @naxels for looking into it.

Copilot AI review requested due to automatic review settings April 17, 2026 13:18
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

This PR restores Nautilus “Open in Ghostty” integration for Ghostty users by ensuring the ghostty-nautilus package gets installed both for existing systems (via migration) and when selecting Ghostty as the terminal through Omarchy’s terminal installer.

Changes:

  • Add a migration to install ghostty-nautilus when ghostty is already installed.
  • Update omarchy-install-terminal to also install ghostty-nautilus when installing Ghostty.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
migrations/1776428579.sh Installs ghostty-nautilus on upgrade for systems that already have ghostty.
bin/omarchy-install-terminal Ensures ghostty-nautilus is installed alongside Ghostty when chosen via the terminal installer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@timlau
Copy link
Copy Markdown

timlau commented Apr 18, 2026

maybe a better approch is to use

https://github.com/Stunkymonkey/nautilus-open-any-terminal

It supports a lot of different terminals

The package is available in AUR and can be installed by

omarchy-pkg-aur-add nautilus-open-any-terminal

There terminal is set by

gsettings set com.github.stunkymonkey.nautilus-open-any-terminal terminal "ghostty"

(Or "alacritty" or" kitty")

@pomartel
Copy link
Copy Markdown
Contributor Author

I haven't tried it but it could be a more universal approach that works with all terminals. I'm not sure how we deal with AUR packages in Omarchy.

@dhh
Copy link
Copy Markdown
Member

dhh commented Apr 18, 2026

Would be great to get this working in all terminals! We can add AUR packages to OPR here: https://github.com/omacom-io/omarchy-pkgs

@pomartel pomartel changed the title Install ghostty-nautilus for Ghostty users Install nautilus-open-any-terminal to open the default terminal from any Nautilus directory Apr 19, 2026
@pomartel
Copy link
Copy Markdown
Contributor Author

pomartel commented Apr 19, 2026

I rewrote the PR to use the nautilus-open-any-terminal AUR package instead, which should work with all the different Omarchy's terminals. I only tested it with Ghostty. This PR depends on omacom-io/omarchy-pkgs#80 being merged first.

@dhh
Copy link
Copy Markdown
Member

dhh commented Apr 22, 2026

This doesn't seem to be working with Alacritty. I get the "Open Terminal Here" option, but it doesn't do anything.

Copilot AI review requested due to automatic review settings April 23, 2026 15:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pomartel
Copy link
Copy Markdown
Contributor Author

@dhh Sorry, I should have tested it more throughly.

This time, I tested it with the 3 terminals we support out of the box (Alacritty, Ghostty and Kitty) and it all works fine.

This was a bit more involving than I initially thought because Ghostty does not work with xdg-terminal-exec and the --dir argument to open in a given directory. But I was able to come up with a minimal workaround that works in all cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants