r/AskProgramming • • Nov 02 '26

Other How are people packaging GUI apps nowadays?

*Linux GUI apps

I don't really use Linux on desktop these days, mainly from the CLI, but I'm rebuilding my navidrome client using GPUI, which would mean it can be cross platform.

For CLI utils I'd just pop a binary on GitHub and have people install it with mise, however, is there a more standard way of doing things on Linux nowadays? Or just provide binary and people figure it out?

5 Upvotes

14 comments sorted by

5

u/this_knee Nov 02 '26

Seems to me , more and more, all apps are becoming web based.

1

u/metux-its Nov 02 '26

Using the target platform's native package management. CI is doing the actual work. (if there's even any practical reason to care about binary packages at all)

1

u/haywire Nov 02 '26

The target platform is Linux? There’s so many distro package managers targeting all of them would be a nightmare.

1

u/metux-its Nov 03 '26

The target platform is Linux?

Linux isn't a target platform, it's just a kernel which happens to be used by a long list of operating systems. Thus the target platforms are the distros.

There’s so many distro package managers targeting all of them would be a nightmare.

Not quite. We're eg doing it the Xlibre and SonicDE projects, and we're directly CI-building installable binpkg-repos for wide range of distros. And those projects aren't trivial to package, because they tend to interact with lots of (often distro specific) low-level stuff. Average user applications are several orders simpler.

1

u/haywire Nov 03 '26

OK interesting. But if I’m using something like GPUI, do I need to worry about X11/Wayland or just have a glibc linked otherwise static binary for people to be able to run so long as they have ALSA or whatever (it’s a music app)?

1

u/metux-its Nov 04 '26

But if I’m using something like GPUI,

Are you talking about the rust UI toolkit by the name "GUII" ? Haven't actually checked it yet.

do I need to worry about X11/Wayland or just have a glibc linked otherwise static binary for people to be able to run so long as they have ALSA or whatever (it’s a music app)?

  • many libs out there aren't suited for static linking (not even glibc - but you might something else, eg. musl)
  • GL and Vulkan are designed to be loaded dynamically (shared objects) - and driver stacks also tend to load their own libraries (eg device specific drivers) at runtime
  • whether you need to worry about particular display protocol hasn't anything to do with static vs dynamic linking - depends on whether or application or the toolkit it's using is already

Building / packaging applications in a way that they're relying only on the kernel uabi (not some OS-provided userspace libraries) is technically possible (eg. using chroot or containers or special linker tricks, etc), but you'll end up with a huge amount of duplication, especially once you need GL, and risk trouble with competing configurations or loosing various system integrations (eg. nsswitch), and can easily become a licensing problem (eg. bundling proprietary nvidia drivers).

1

u/haywire Nov 04 '26

Are you talking about the rust UI toolkit by the name "GUII" ? Haven't actually checked it yet.

https://gpui.rs/

Ah yeah so building glibc binaries still might break?

What about a source tarball? I've done .deb files and can do RPMs probably (IDK if they need to be signed by me), not sure what to do for cachy/arch

1

u/metux-its Nov 04 '26

https://gpui.rs/

Okay, so I guessed right :)

Ah yeah so building glibc binaries still might break?

It's not just glibc. Also needs other libraries, especially the GL stack. Kronos-APIs should be fixed-ABI (IOW: binary interface is also specified, not source C source interface), but I wouldn't rely on that. Especially when the actual implementation (eg. mesa) is using lots of other libraries.

If you wanna bundle everything, you'll need to bundle those, too. And then you'll have to bundle ALL available drivers (including the proprietary ones), and have your own logic to pick the correct ones for the actual machine - otherwise many people (whose GPU you didn't bundle the driver for) wont be able to use your software.

What about a source tarball?

Yes, or even better just a git repo (with signed tags, etc). And then let distro people do the packaging.

1

u/haywire Nov 04 '26

Ah yeah, it's opensource on github :) Just wanted to see if I could make things easier, I will prob need to get a VM to test it on desktop linux a bit, but currently I only have one desktop machine and it's macos/arm64 so.

But it's in the spirit of the software to make it portable and accessible to people, the core/tui itself already runs perfectly well on linux+alsa, just the GUI is really nice and I wouldn't want people to not have it.

3

u/aieidotch Nov 02 '26

official debian package

3

u/catbrane Nov 02 '26

I use flatpak.

1

u/DrHydeous Nov 02 '26

Tarball. If I expected to make lots of updates and have lots of users I’d create a little deb repo, and I’d accept a pull request from someone who wanted rpm.

-2

u/hk4213 Nov 02 '26

Bro... just put that into Google and start reading anything but the Ai summary.