this post was submitted on 23 Jan 2024
105 points (95.7% liked)

Linux

48052 readers
670 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I love Flatpaks, the programs are nicely separated so they don't interfere with each other. They also don't have flaws like Snap's low performance or Nix's complexity.

But being limited to only graphical apps seems like a real drawback. If one wants to use Flatpaks as their primary package manager there have to be some awkward workarounds for cli programs.

E.g., the prime Flatpak experiene is supposed to be on immutable distros like Silverblue. But to install regular cli programs you are expected to spin up a distrobox (or toolbox) and install those programs there.

Having one arch distrobox where I get my cli programs from will not work, as the package entropy over time will get me the very dependency issues that Flatpak wants to solve.

So what is the solution here? Have multiple distroboxes and install packages in those in alternation and hope the boxes don't break? Use Nix alongside Flatpak? Use Snaps?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 40 points 9 months ago (1 children)

Flatpak can do CLI apps it's just mildly unwieldy because of the whole flatpak run ....

If you want reproducible dev environments, yeah you're pushed to container solutions be it distrobox, Podman or Docker. Or something like nix as a user.

If you install a Debian distrobox it'll be as reliable as Debian itself is. It's only an issue when you're after 100% reproducible systems, which Docker can help somewhat with, or again, nix. Or NixOS if you really want it all system-wide.

[–] [email protected] 13 points 9 months ago (4 children)

flatpak run org.gimp.Gimp image.png vs. gimp image.png or even xdg-open image.png. "Mildly unwieldy" I suppose but a massive pain in the ass in practice. I can't believe they thought that it was a good idea to require all that and provide no way to create a script in /usr/local/bin or even .local/bin.

[–] [email protected] 19 points 9 months ago* (last edited 9 months ago) (2 children)

echo 'alias gimp="flatpak run org.gimp.Gimp"' >> ~/.bash_profile

[–] [email protected] 32 points 9 months ago

Oh my God I never thought of that! /s

What a pain in the ass to require me to maintain a set of aliases for everything I install. Great user experience.

[–] optissima 7 points 9 months ago

And the other 125 flatpaks I have?

[–] [email protected] 3 points 9 months ago (1 children)

Flatpak should export mimetypes so xdg-open should work if there isn't another handler registered

[–] AProfessional 4 points 9 months ago (1 children)

You mean it already does. (“should” can be vague)

[–] [email protected] 1 points 9 months ago

I believe so. (Depending on how your OS packages flatpak)