this post was submitted on 07 Aug 2024
19 points (100.0% liked)

Linux

2362 readers
23 users here now

Shit, just linux.

Use this community for anything related to linux for now, if it gets too huge maybe there will be some sort of meme/gaming/shitpost spinoff. Currently though… go nuts

founded 1 year ago
MODERATORS
 

Is it just me, or are most snap packages broken?

A lot of problems have to do with developers using some command to start or run a process, for example:

  • dropbox “Launch Dropbox Website” fails badly for Firefox as a snap
  • gimp as a snap, preferences-folders--Show file location in the file manager, doesn’t work

Another type of problem is the location for local files, e.g.:

  • a snap zoom upgrade uses the same location for recordings as the prior version, which doesn’t work because the old snap version directory is inaccessible

Another type of problem is the integration with Ubuntu (ostensibly the owner of the snap format), for example:

  • superkey (Windows logo) search for a snap and click or double-click on the icon just shows a wait cursor and finally times out (you have to right click and choose New Window)
  • update fails to update snaps - you need to manually sudo snap refresh, and even then the Software Updater thinks it need to update something until you reboot
  • snap-store has no search function - but if you start typing it will search (what kind of sadistic user experience designer thought that one up?)
  • snap-store Updates - Update All can fail and display a failure message from weeks ago
  • don’t even get me on about disk usage, like /var/lib/snapd/snaps or your ~/snap directory, that likely have more gigabytes than you’ve needed in a long time

Should I just give up on snaps and use Flatpack or Appimage?

you are viewing a single comment's thread
view the rest of the comments
[–] cyborganism@lemmy.ca 1 points 1 month ago* (last edited 1 month ago)

Ok, I'm going to play devil's advocate, even though I prefer Flatpaks over Snaps.

  • Snaps are compressed and remain compressed on your system so it's quicker to download and takes up less storage. (Yes the downside is a slower startup time because it has to decompress first. As opposed to Flatpaks that are downloaded compressed, but are stored uncompressed, and take up more storage.)
  • I'm using KDE Plasma (v5 on Kubuntu 24.04) and the Discover app updates all my Snap packages without a hitch. And I would assume it works flawlessly un the standard Ubuntu as well. I don't know about the other app store apps for other distros however.
  • Snaps, like Flatpak, has a tool to manage app permissions. Both launch apps in a sandboxed environment and require permissions to be set, kind of like with Android apps.
  • Speaking of sandboxing, this leads to problems in both Snaps and Flatpak where applications were not implemented to be run in a sandboxed environment to begin with and may block some features. (I just ran into such a problem with Firefox and its KeepassXC extension which cannot connect to my KeepassXC instance.)
  • Also about sandboxes, this actually increases security. For example, the printing system CUPS has known vulnerabilities. Running it in a Snap can stop some of the attack vectors.
  • One of the downsides is that the app stores like Flathub or Snapcraft don't really check who uploads what. So you may be looking for a Firefox browser for example, and there will be several from different providers. You have to make sure you check from the original website instead of your app store app to see if you are downloading from the official provider or risk downloading a modified version from bad actors.

Since these are slowly being adopted by developers, they haven't ironed out all the kinks yet. So it's important as a user to report problems so they can fix them. Or, to participate yourself and provide fixes if you can. That's what makes open source software thrive.