this post was submitted on 06 Apr 2024
223 points (97.4% liked)

Linux

45823 readers
1951 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
top 50 comments
sorted by: hot top controversial new old
[–] rollingflower@lemmy.kde.social 44 points 3 months ago (16 children)

Meanwhile Inkscapes official methods to get the GTK4 nightly are

  • appimage (broken by design)
  • snap (only sandboxed on ubuntu and requires snapd)
  • ppa (only on ubuntu at all, but possible through distrobox)

When there is a beta release there will likely be a flatpak soon though.

[–] OsrsNeedsF2P@lemmy.ml 20 points 3 months ago (3 children)

Why is Appimage broken by design?

[–] rollingflower@lemmy.kde.social 17 points 3 months ago (2 children)
[–] Samueru@lemmy.ml 9 points 3 months ago* (last edited 3 months ago) (5 children)

This is really bad lmao.

flatpak is bloated mess. It basically installs a whole distro onto your existing distro.

That person is also lying very badly by saying that appimages bloat the system... they are actually even smaller than native packages due to their compression (like for example the entire libreoffice suite being 300 MiB while a native package is 600 MiB).

This is the space that flatpak takes to install firefox, just firefox: https://imgur.com/a/WRcRWIL

While this is 15 appimages, that includes libreoffice, kdenlive and two web browsers: https://imgur.com/a/YxjUYdt


EDIT: After being accused of misleading people by @BananaTrifleViolin@lemmy.world I decided to install firefox, libreoffice and kdenlive to flatpak, just those 3 applications, because I was told sure the deduplication was going to do miracles:

~~https://imgur.com/ExH84gV.png)~~

)~~6.2 GIB WTF** (15 appimages was 1.2 GiB once again kek, how can flatpak be this bad lmao)~~

EDIT2: This actually isn't the real size, I moved the flatpaks to their own partition and checked that instead:

Alright I just moved flatpak to its own partition and checked the size of the partition instead:

with firefox, kdenlive and libreoffice:

Disk (/var/lib/flatpak) 2.69 GiB / 19.12 GiB (14%) - ext4

That’s much better now. But still twice the size that 15 appimages took.

This is with now having firefox librewolf brave kdenlive and libreoffice:

Disk (/var/lib/flatpak) 3.40 GiB / 19.12 GiB (18%) - ext4

Still though, the appimages take less space. A by a large margin.

Flatpak is just a bloated mess, even with deduplication:

And this is what flatpak uses with just firefox installed:

Sorry for misleading people, turns out flatpak doesn't use near 3X as much as 15 AppImages when it just has firefox installed (which once again those 15 AppImages use 1.2 GIB). It just uses 1.35GiB when it has a single app kek.


On top of that flatpak is not terminal friendly, you have to start everything with flatpak run org.etc.etc (this also breaks scripts that expect the simple binary name in PATH).

Flatpak is also non XDG base dir compliant, and they said over and over that they wont fix that issue: https://github.com/flatpak/flatpak.github.io/issues/191

This person is complaining that appimages suck because you have to put the desktop entry yourself, when apps like am or zap and appimagelauncher do it for you lmao. (And at least am also makes a symlink in PATH so it fully integrates the appimage unlike flatpak ever will)

EDIT: That github link is really bad, it even links this article for saying that sanboxing with appimages isn't secure:

https://madaidans-insecurities.github.io/linux.html#firejail

WHEN THAT VERY LINK SAYS THAT FLATPAK ISN'T GOOD EITHER, it even calls out the flatpak devs for it.

[–] BananaTrifleViolin@lemmy.world 17 points 3 months ago (16 children)

This is misleading.

Flatpak installs sandboxed libraries and then shares them between different apps as you install them. The first app installed may seem big but often the next app will use many of the same libraries rather than redownload/reinstall them.

Appimage does not share libraries. Each Appimage is a complete image, libraries included and compressed out of necessity. It can be targeted at systems to reduce library bloat but it's often easier just to shove everything in to ensure it works. Also that compressed file system needs to be decompressed which causes further overhead. Simple apps with few dependencies will be small, but big apps can bloat massively particularly if they're not targeted (and that's common as they're treated as run-anywhere solutions for developers).

Plus Appimage can include security flawed libraries - the significance of that will depend on the App being exposed to them. I wouldn't want to run a web browser using a poorly maintained appimage for example, but I'd consider running a random small tool or utility if that was the only option.

Both models are flawed compared to native apps - not quite to the point of installing an entire distro but close. But Flatpak installs one shared set sandboxed environment, while every AppImage is crudely it's own distro.

[–] pmk@lemmy.sdf.org 4 points 3 months ago (1 children)

I'm trying to understand the Flatpak model here, so if Flatpak installs sandboxed libraries, does that mean that all programs on Flathub are compiled against the same "base" runtime? Theoretically, if I had 10 flatpaks installed, could they pull in 10 different runtimes? It seems like this could get out of hand. Iirc, Fedora has their own runtime for their own flatpaks, tied to the version. (A runtime for Fedora 39, another for 40, etc?) In that case, is the idea to have one (traditional) set of libraries for the base OS, and another (runtime) set of libraries for user applications? Could it come full circle so that the base OS is relying on the same libraries as provided by the runtime? I am somewhat confused...

[–] AProfessional@lemmy.world 7 points 3 months ago* (last edited 3 months ago)

A new freedesktop runtime releases once a year, most apps are on the latest.

Nobody uses the Fedora runtime. It exists for political reasons not practical.

load more comments (14 replies)
[–] rollingflower@lemmy.kde.social 15 points 3 months ago* (last edited 3 months ago) (1 children)

Appimages also install another distro onto your system. May be small, but you have no deduplication at all. Flatpak could do a better job at enforcing the use of very few runtimes, but at least it is transparent what is used, unlike with Appimages (where you have no idea if any app has a runtime with a vulnerability etc).

If they use compression, you replace disk space with CPU power.

You might want to check flatpak disk usage using this tool

Mine is

28,88 GB "naive"
21,57 GB with deduplication
16,24 GB with compression

For all my apps, including a ton of stuff I just test. And that on a 1TB drive is just not important.

Appimages can be placed in ~/.local/bin/ which makes them kinda okay for terminal use. But none of the formats is terminal friendly. Flatpak has a veeeery descriptive syntax, which makes sense but for sure it is a pain to write.

There are easy workarounds for that though, like this aliasing script

But yes, CLI stuff is not covered but that is also okay. Flatpak deals with all the huge GUI apps, the distros can take care of the small rest.

Of course thats not perfect, but snaps have no sandboxing without apparmor (with patches) and appimages have no sandboxing at all, ignoring firejail which is a root binary and has had security vulnerabilities in the past, making it basically a privilege escalator.

Yes they break that strange XDG idea, and that makes sense. Every app is a container, and if you delete that app directory, all its settings are reset etc. It is a huge advantage for a clean system.

For sure the directories are long as f*ck but that is an okay drawback for having the ability to control the app data so easily.

[–] Samueru@lemmy.ml 2 points 3 months ago (1 children)

Appimages also install another distro onto your system. May be small,

Would you say portable builds (like deadbeef) also install another distro onto your system? This is what appimages primary replace...

If they use compression, you replace disk space with CPU power.

You can also extract the appimage and run the AppRun script, comes with the downside that it increases the size of the appimage but you don't have that trade off anymore if that is a problem. And yeah you will have to umcompress a lot of appimages before the space usage is comparable to that of flatpak lol.

And that on a 1TB drive is just not important.

Yeah but there is a big difference in saying that appimages bloat the system when they DO NOT, and now dismissing? flatpack usage it as "is just not important" wtf.

Yes they break that strange XDG idea, and that makes sense

Is it strange idea to not want my home cluttered by a bunch of useless top level dotfiles?

Appimages can be placed in ~/.local/bin/ which makes them kinda okay for terminal use. But none of the formats is terminal friendly

Package managers like AM automatically place the appimage in /opt and make symlinks to /usr/.local/bin (it also keeps the appimage up to date by comparing the version from that of the repo). I use it for terminal apps like amdgpu_top, which ships as an appimage by the creator themselves.

It also has a portable mode called 'appman', I use this one and I drop my appimages in ~/.local/opt and it automatically makes symlinks to ~/.local/bin (this last one is also a XDG location btw).

Both also automatically install the desktop entry to the appimage, something that seems to be too hard for the person that made that github thing. There is also zap and appimagelauncher for that. And even gearlever for the flatpak users that want to use appimages.

CLI stuff is not covered but that is also okay.

It is not ok at all, flatpak could be much better but they don't want to fix it, that is the issue, and I haven't gone into the performance issues you can have with flatpak because like in the case of yuzu, the flatpak was compiled for x86-64 generic while the appimage was x86-64 v2, and it also had a bunch of issues because flatpak ships its own version of mesa iirc. Honestly if I'm forced to choose one thing out of everything, it would likely have to be nix, and nix has the small issue of not being FHS compliant lol. So yeah it really sucks.

appimages could also be much better, if the runtime statically linked glibc they would also work on musl distros which is a shame they don't.

[–] rollingflower@lemmy.kde.social 5 points 3 months ago (2 children)

Would you say portable builds (like deadbeef) also install another distro onto your system?

They statically link binaries which is pretty similar.

You can also extract the appimage and run the AppRun script, comes with the downside that...

I guess you cannot update an app anymore when doing that.

Flatpak uses BTRFS compression afaik, so I dont know if it has a performance hit and it can likely not be turned off.

Is it strange idea to not want my home cluttered by a bunch of useless top level dotfiles?

That is .firefox etc. Flatpaks put everything in ~/.var/app/ which doesnt clutter anything.

Those Appimage helpers sound interesting and I will look at them. The tasks of placing somewhere, creating desktop entries etc. is not hard, but needing to do that manually is a strange and broken concept. I suppose those helper programs have some kind of community support, as Balena Etcher or whatever dont supply .desktop files.

I agree with the problems you mentioned after that. Relying on glibc is bad, using outdated x86_64 architecture is silly. The last one could be fixed easily. The former one probably not that easily.

Desktop Linux is messy for sure. But Flatpak is just really good at what it can do.

load more comments (2 replies)
[–] TheGrandNagus@lemmy.world 10 points 3 months ago* (last edited 3 months ago) (9 children)

Wow you are really trying to mislead here.

No, Firefox doesn't take up multiple gigabytes of space. It shares a runtime with a bunch of other programs. So yeah if you literally install one Flatpak, it'll prompt you to download a bunch of extra stuff, but after that it won't. Most people don't only install one program on their PCs, so it's not much of an issue.

Flatpak has deduplication, which appimages doesn't have. If you install a load of appimages and a bunch of flatpaks, the flatpaks should take up less space, because Flatpak uses deduplication (i.e. only one copy is actually stored) and appimages don't, it has several copies of the same dependencies.

Appimages also sometimes don't even contain everything your system needs to run them, which can cause issues if the host system doesn't have it. So it can frequently fail at the main touted usecase: portability!

And don't get me started on stuff like theming, lack of app updates, worse Wayland support (the main dev even flat out refusing to merge Wayland fixes as he is ideologically opposed to it), and downloading programs via a browser like on a Windows system.

Not to mention having to browse to a specific folder and running the appimage every time, unless you do tedious work to add them to your app launcher, or you have a program that acts as an appimage launcher, which is again more tedious setup.

load more comments (9 replies)
[–] azvasKvklenko@sh.itjust.works 6 points 3 months ago* (last edited 3 months ago) (1 children)

To me, those aren’t real Flatpak issues. Yeah the CLI interface is clunky, but why would I care when the XDG desktop file path is being added automatically and Flatpak is for desktop apps, not for CLI. It only matters when debugging broken application, but at the same time it's not that hard. Overall that also gives us ability to have multiple instances of the same app installed multiple times from different sources.

Flatpak can easily work on anything that has it in its repo and usually the setup is piece of cake. I had much worse time dealing with some AppImages due to its wild guesses about what the host system is, like libfuse version. Desktop integration is really meh imho and I could never figure out how to use it effectively without some lost desktop files here and there I had to clean manually (haven’t tried in a couple of years now, it could be better now).

Wayland support is intentionally broken by AppImage creator/maintainer just to be able to point finger at Wayland ecosystem and say: look - unfixable. Lately the same dude wanted to propose collection of out-of-tree Wayland protocols to make it more like X11, which is horrible idea and no actual Xorg/Wayland dev would have any interest in doing, because it defeats the decade long efforts to change how the graphics stack works.

AppImage maintainers also showed their disappointing attitude when trying to get OBS to use it, assuming everyone will be interested in having that package format published on official projects website, while conforming to all requirements and doing the work of adjusting app to that format. To no surprise, OBS was horribly broken when built that way, and they demanded OBS devs to fix it, not getting how could they possibly not be interested in having app image, while already having well built (I use it myself, it’s great) Flatpak package.

Flatpak does sandboxing with fine tuning abilities (using something like Flatseal or new KDE's built-in KCM) + there is actual verification process at least for new apps on Flathub. I don’t say it’s 100% safe, but compare that to AppImages which is just running randomly downloaded binaries from the web with full filesystem access.

load more comments (1 replies)
[–] rollingflower@lemmy.kde.social 5 points 3 months ago

Please be aware that you just commented on some of the points.

Madaidan is often criticised and debunked, and that "linux is insecure" post is pretty old.

They say that many flatpakked apps have broad permissions, which is not a flatpak issue, because those are simply legacy apps that are often huge, dont support Flatpak at all and often also dont care.

I maintain a list of modern apps, that do not need broad permissions like that

They mention the "badness enumeration" like restricted syscalls, which is really problematic and seems to still be used. This is really bad and I hope it gets fixed, will open an issue about that.

But dont forget: flatpak apps may have broad permissions, but native apps have all permissions, appimages too. They have unrestricted syscalls, if not changed in the system itself.

So these might be valid points, but not a defense of Appimages at all.

load more comments (1 replies)
[–] merthyr1831@lemmy.world 7 points 3 months ago

Beyond the given arguments, App images are destined to have subpar Wayland support because the main dev behind app images is a toxic kid who has a weird attachment to the x server, to the point of rejecting PRs where others have done the work of improving Wayland support on his behalf.

[–] possiblylinux127@lemmy.zip 3 points 3 months ago* (last edited 3 months ago)

Because Linux isn't Windows 95

[–] IrritableOcelot@beehaw.org 5 points 3 months ago (1 children)

It's a nightly build, I don't really see that as an issue. The stable build is available in every format I can imagine.

load more comments (1 replies)
[–] ULS@lemmy.ml 2 points 3 months ago* (last edited 3 months ago) (3 children)

Just get the exe and use wine. Or windows VM. I always use .exe for everything. I have no app images or flatpaks. On Ubuntu make a windows VM, in that windows VM install virtualbox and make an Ubuntu VM... And keep doing this until you have no disk space. Make a VM for every app.

I solved it.

[–] rollingflower@lemmy.kde.social 6 points 3 months ago

Uhm did you forget a /s ?

[–] lemmyvore@feddit.nl 6 points 3 months ago (3 children)

That's basically sandboxing with extra steps... but whatever works for you, I guess.

[–] lauha@lemmy.one 5 points 3 months ago

It's a joke, obviously

load more comments (2 replies)
[–] merthyr1831@lemmy.world 2 points 3 months ago
load more comments (13 replies)
[–] BananaTrifleViolin@lemmy.world 30 points 3 months ago* (last edited 3 months ago)

Makes sense - PPAs are very platform specific, plus from a user point of view a bit of a security nightmare (not the Kodi PPA but the idea of adding lots of different PPAs, often poorly named and difficult to keep track of as a user).

I used to get fed up with PPAs when I used Ubuntu - particularly when you to go through a major distro upgrade and you have to go hunting through all of them to see if they support your new distro version. They're just not a good distribution system for most users.

Also the Flatpak will benefit more users across other systems and has the potential to be more secure (particularly given the add ons people download and run in kodi).

Edit: worth noting they have retired the PPA but haven't built out all their equivalent Flatpak versions. An example of the unpaid hard work and hours volunteers put in to maintain open source software.

[–] barbara@lemmy.ml 15 points 3 months ago
[–] danielquinn@lemmy.ca 5 points 3 months ago (4 children)
[–] SomethingBurger@jlai.lu 12 points 3 months ago (1 children)

Basically Ubuntu's version of the AUR.

[–] giloronfoo@beehaw.org 7 points 3 months ago (3 children)

Except they can be hosted by the person/company making the software. This always seemed more trustworthy than AUR to me.

Of course there are also community PPAs that would need the same scrutiny as AUR packages.

[–] lemmyvore@feddit.nl 5 points 3 months ago

You mean... zero scrutiny? 🙂 The big advantage of AUR is that there's only one of it but that's about it.

The PPA model is fundamentally broken. As soon as you replace a core package from a PPA (which happens silently if it's a dependency) you can kiss upgradeability goodbye. By the time the next Ubuntu release rolls out you'll be in dependency hell and won't be able to upgrade cleanly.

[–] boo_@lemmy.blahaj.zone 2 points 3 months ago

PPA:s are specifically hosted by Canonical, no? Otherwise it's just a normal repo.

load more comments (1 replies)
[–] BananaTrifleViolin@lemmy.world 9 points 3 months ago* (last edited 3 months ago)

It's basically a privately hosted repo with a very small set of programs/libraries. PPA is a Personal Package Archive.

If you run Ubuntu (or most Debian derivatives) you can add a PPA as an extra repo and the version of software in that repo will usually be newer than the versions maintained by the distro (or even not present in the distro).

It's not quite like the AUR - the AUR is a central public repo that people submit their packages to. Each PPA is a privately run and maintained repo with their packages in.

It is used by some projects to officially distribute their software but it is also something of a potential security nightmare.

load more comments (1 replies)
load more comments
view more: next ›