Ghostty without layering?

I’ve been trying to rid myself of local layering and the last hurdle seems to be Ghostty…

There isn’t a flatpak yet, and building from source seems to require the gtk4-devel RPM, as no brew packages seem to work.

Has anyone managed to get Ghostty to work without local layering? :ghost:

Can you build in a Fedora distrobox then just copy out the result? I do this sometimes when I just need some temporary dev dependencies.

Indeed, I made a fedora distrobox and followed the build recommendations of Ghostty for fedora, see here: Build from Source - Install. You can deploy a binary in your home dir:

zig build -p $HOME/.local -Doptimize=ReleaseFast

This allows you to run Ghostty directly from the host, without entering distrobox and without layering.

Anyway, I liked the experiment and Ghostty is a promising project. For daily use, I prefer the default Ptyxis terminal.

4 Likes

Hm. Clever!
I’ll have to give this a try the next time I need a binary (added to satisfy the 20 char min).

Ah, I didn’t think of copying the binary and running as host. Thanks!

Hopefully the flatpak will be out soon so this manual maintenance will go away.

Indeed! With sharing of your home directory into the distrobox container, you very likely won’t need a manual copy step. As per comment from @mheuvel-dev .

2 Likes

Right now I’ve set up a script for fetching the latest release and building if there are differences, but it’s a little janky and I’m not sure how to automate it to run in the distrobox.

Does anyone have a nice way of setting up something like a systemd Quadlet to automate the maintenance?

I just realized there is an easier way than compiling from source. You could use the appimage as an alternative:

This page also includes ways to keep the app up to date.

It seems that AppImage support might be going away.

3 Likes

Let’s give people time to cook. :smiley:

2 Likes