this post was submitted on 17 Nov 2023
489 points (89.5% liked)

linuxmemes

20761 readers
1751 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] sederx@programming.dev 120 points 10 months ago (4 children)

But new users don't even know what snaps are. They don't care. We care because we are crazy bastards

[–] fraydabson@sopuli.xyz 15 points 10 months ago (1 children)

The problem is they don’t care until it becomes an issue which by then becomes harder to fix. I also just really hate snap lol

[–] jimbo@lemmy.world 2 points 10 months ago

When would it become an issue?

[–] Jumuta@sh.itjust.works 8 points 10 months ago (1 children)

I think they would care if they knew the benefits of not having snaps.

There's little to no advantage in having them, so why have them?

[–] RmDebArc_5@lemmy.ml 5 points 10 months ago (1 children)

Snaps just create additional confusion

[–] fuckwit_mcbumcrumble@lemmy.world 6 points 10 months ago (4 children)

Do they really cause confusion? Or do they make software "just work" which is much more important to a new user?

[–] RmDebArc_5@lemmy.ml 6 points 10 months ago (1 children)

It’s confusing if there are more than one version of an app and the fact that the command to install one installs the other doesn’t make it better

[–] fuckwit_mcbumcrumble@lemmy.world 3 points 10 months ago (1 children)

There's already more than one version without snap, it's already a confusing mess. Not all distros are compatible with the exact same binaries. And people probably don't want to compile everything form source.

Snap could potentially unify things, and remove all of that confusion.

[–] RmDebArc_5@lemmy.ml 1 points 10 months ago

And then Canonical would control Linux apps, sounds like a good idea

[–] EuroNutellaMan@lemmy.world 3 points 10 months ago

well the first one definitely to a new user, the secod one it "just works" in the same way Fallout 76 did.

[–] rambaroo@lemmy.world 2 points 10 months ago* (last edited 10 months ago)

Flatpaks are just as easy to use without the drawbacks of snaps. There's no reason to use snaps excet for Canonical pushing them on end users.

And frankly snaps frequently don't work well, that's the entire reason people hate them.

[–] Jumuta@sh.itjust.works 2 points 10 months ago

it was confusing for me when apt install Firefox installed the snap version

[–] ivanafterall@kbin.social 0 points 10 months ago (1 children)
[–] IHeartBadCode@kbin.social 0 points 10 months ago (1 children)

I am so sorry this got so long. I'm absolutely horrible at brevity.

Applications use things called libraries to provide particular functions rather than implement those functions themselves. So like "handle HTTP request" as an example, you can just use a HTTP library to handle it for you so you can focus on developing your application.

As time progresses, libraries change and release new versions. Most of the time one version is compatible with the other. Sometimes, especially when there is a major version change, the two version are incompatible. If an application relied on that library and a major incompatible change was made, the application also needs to be changed for the new version of the library.

A Linux distro usually selects the version of each library that they are going to ship with their release and maintain it via updates. However, your distro provider and some neat program you might use are usually two different people. So the neat program you use might have change their application to be compatible with a library that might not make it into your distro until next release.

At that point you have one of two options. Wait until your distro provides the updated library or the go it alone route of you updating your own library (which libraries can depend on other libraries, which means you could be opening a whole Pandora's box here). The go it alone route also means that you have to turn off your distro's updates because they'll just overwrite everything you've done library wise.

This is where snaps, flatpaks, and appimages come into play. In a very basic sense, they provide a means for a program to include all the libraries it'll need to run, without those libraries conflicting with your current setup from the distro. You might hear them as "containerized programs", however, they're not exactly the Docker style "container", but from an isolating perspective, that's mostly correct. So your neat application that relies on the newest libraries, they can be put into a snap, flatpak, or appimage and you can run that program with those new libraries no need for your distro to provide them or for you to go it alone.

I won't bore you on the technical difference between the formats, but just mostly focus on what I usually hear is the objectionable issue with snaps. Snaps is a format that is developed by Canonical. All of these formats have a means of distribution, that is how do you get the program to install and how it is updated. Because you know, getting regular updates of your program is still really important. With snaps, Canonical uses a cryptographic signature to indicate that the distribution of the program has come from their "Snaps Store". And that's the main issue folks have taken with snaps.

So unlike the other kinds of formats, snaps are only really useful when they are acquired from the Canonical Snaps Store. You can bypass the checking of the cryptographic signature via the command line, but Ubuntu will not automatically check for updates on software installed via that method, you must check for updates manually. In contrast, anyone can build and maintain their own flatpak "store" or central repository. Only Canonical can distribute snaps and provide all of the nice features of distribution like automatic updates.

So that's the main gripe, there's technical issues as well between the formats which I won't get into. But the main high level argument is the conflicting ideas of "open and free to all" that is usually associated with the Linux group (and FOSS [Free and open-source software] in general) and the "only Canonical can distribute" that comes with snaps. So as @sederx indicated, if that's not an argument that resonates with you, the debate is pretty moot.

There's some user level difference like some snaps can run a bit slower than a native program, but Canonical has updated things with snaps to address some of that. Flatpak sandboxing can make it difficult to access files on your system, but flatpak permissions can be edited with things like Flatseal. Etc. It's what I would file into the "papercut" box of problems. But for some, those papercuts matter and ultimately turn people off from the whole Linux thing. So there's arguments that come from that as well, but that's so universal "just different in how the papercut happens" that I just file that as a debate between container and native applications, rather a debate about formats.

[–] Agent641@lemmy.world 0 points 10 months ago (1 children)
[–] DerisionConsulting@lemmy.ca 1 points 10 months ago* (last edited 10 months ago)

Take that person's post, comparing it to cooking.

Sometimes you use a ~~Library~~ pre-made sauce or spice blend as part of a recipe, so you don't need to waste time remaking something that is commonly used.

Every so often, a company will tweak the recipe for the things you are using, but it still basically tastes the same. Sometimes they just decide that now it's salty instead of sweet, so it would complete ruin the dish you would like to make.

The recipe you are using assumes you live in Australia where the new version of the sauce/spice blend is more common, but where you live still only sells the old version.

So now you can either wait for the store to sell the new sauce/spice blend, import it from Australia, or try to make it yourself. But you might have another recipe that still needs/uses the old sauce/spice blend. Needing to have both can lead to issues where you use the wrong one, ruining the food you are trying to make.

This is where ~~snaps, flatpaks, and appimages~~ those dish-in-a-box kits come into play. They'll have the correct version of the spices/sauces you want, so it doesn't really matter which version you have in your kitchen.

Snaps branded dish-in-a-box kits are developed by Canonical, and they can be kinda weird. You need to check ~~for updates~~ if you need to re-buy them manually, and you can only get them from the "Snaps Store". Other dish-in-a-box kits allow you to get them from whichever store you want, and will automatically re-order when needed.

And that’s the main issue folks have taken with snaps. If you ~~have 50+ programs~~ are making a meal with 50+ dishes, and you need to constantly check if you need to rebuy them one by one, it gets old quickly.


Also, Snaps takes up a lot of room, and generally just kinda suck compared to installing things normally or through flatpack.