News for hackers. Stuff that matters.
Re:Disabling automatic refresh for Snap from store by brianshaler on Saturday March 26, 2022 @09:54AM (#30811779)
I personally use ubuntu and have used snap enough to get thoroughly burned and annoyed by it. Slow starts, no auto-update controls with bad defaults corrupting running programs, spammed mount points... (edit: see comment below for some limited controls to reduce the frequency of auto-updates)

But, unless I'm missing something about latest or future releases, isn't it still optional? Can't you use apt instead and uninstall snapd altogether?

I'd agree that needing to uninstall instead of opt-in is an annoyance, and that user-hostile actions tend to be a slippery slope..

Re:Disabling automatic refresh for Snap from store by vladvasiliu on Saturday March 26, 2022 @10:02AM (#30811852)
> But, unless I'm missing something about latest or future releases, isn't it still optional? Can't you use apt instead and uninstall snapd altogether?

There seem to be more and more things that are only delivered as snaps.

I haven't used Ubuntu on the desktop in a while (and even then, it was just trying it out), but I remember that trying to apt install <something> would say "use the snap". I think LXD is in that case, for example.

Re:Disabling automatic refresh for Snap from store by chousuke on Saturday March 26, 2022 @10:54AM (#30812354)
I recommend Fedora to everyone wanting a desktop alternative to Ubuntu. It's a well-balanced distribution that is opinionated enough to work fine as-is but doesn't try to force things on you the way Ubuntu does with snaps.
Re:Disabling automatic refresh for Snap from store by pbhjpbhj on Saturday March 26, 2022 @01:30PM (#30813649)
What DEs are common/supported on Fedora, I use KDE (Kubuntu), I'm not keen on snaps and so it seems expedient to switch distros when I next install (as it seems Ubuntu are all in for snaps).
Re:Disabling automatic refresh for Snap from store by tapoxi on Saturday March 26, 2022 @10:44PM (#30817301)
You want Kinoite: https://kinoite.fedoraproject.org/ it's Fedora's equivalent of Kubuntu. I'm a GNOME user but I've heard good things.
Re:Disabling automatic refresh for Snap from store by spinachsalad on Sunday March 27, 2022 @02:17PM (#30822594)
Well, this is a KDE variant of Fedora Silverblue, so there are some quirks. If you want normal Fedora but with KDE, there is a KDE spin available: https://spins.fedoraproject.org/kde/
Re:Disabling automatic refresh for Snap from store by tapoxi on Monday March 28, 2022 @10:52AM (#30831075)
Whoops! Nice catch, I love Silverblue but forgot this was the Silverblue KDE spin.
Re:Disabling automatic refresh for Snap from store by chousuke on Saturday March 26, 2022 @02:54PM (#30814300)
Gnome is the default and there's a KDE "spin", but I use Sway myself so I can't really comment on how well KDE works.
Re:Disabling automatic refresh for Snap from store by stjohnswarts on Saturday March 26, 2022 @03:49PM (#30814784)
I can't do that because I don't want to update every 6 months. If I wanted to do that I'd just move to arch/endeavour.
Re:Disabling automatic refresh for Snap from store by dralley on Sunday March 27, 2022 @12:32AM (#30817729)
You don't _have_ to update every 6 months. Each release is supported for around 13 months so you can hop every 2 releases.
Re:Disabling automatic refresh for Snap from store by pizza234 on Saturday March 26, 2022 @12:51PM (#30813388)
> There seem to be more and more things that are only delivered as snaps.

I'm on Ubuntu, and of all the software I use (I count around 20 programs installed not through the Ubuntu apt repositories), fortunately only two are available only on snaps - Chromium and Subsync. The first actually accelerated my move to Firefox.

Regarding Subsync, I had to write a ridicolous script to start/stop all the snap services - ridicolous because Snap has an integrity service that overwrites any change to the Snap system (!!), so one can't even hack the Snap system files without disabling such service. It actually gets worse - Ubuntu has a relatively tight intergration with snap: one can't have the `snapd` serviced disabled (without hacks), because the Ubuntu software upgrade invokes it if present, and if it's disabled, the upgrade will hang.

If Ubuntu will force more software to go through Snap, I'll abandon it (after many, many years).

Re:Disabling automatic refresh for Snap from store by brianshaler on Saturday March 26, 2022 @10:30AM (#30812124)
Yikes! I fortunately haven't run into this yet. There are very few cases where I would take the easy road and install a snap (maybe a one-time use CLI where performance doesn't matter and I'd uninstall after?). If not in apt I'd probably ignore the suggestion and look for a ppa, binary, or, in rare cases, compile from source.
Re:Disabling automatic refresh for Snap from store by spaniard89277 on Saturday March 26, 2022 @10:09AM (#30811914)
Firefox is only available as snap now. I gues it's bthe same for other apps.

For VSCode I managed to download a deb from their site IIRC, but from apt it only suggests to download from snap.

Re:Disabling automatic refresh for Snap from store by brianshaler on Saturday March 26, 2022 @10:27AM (#30812088)
Interesting. Firefox on snap was an absolute nightmare. Not only would New Tab break after an update, fonts would break as they may be (re-)loaded from disk which becomes missing when the app gets remounted at a new mount point after an update. I forget which hoops I had to jump through, but I did finally find a non-snap method that allows me to manually update (or dismiss prompt) to get around these issues while staying up to date (~1 day)

VScode wasn't as bad, as it usually seemed to work (but maybe flaky plugins were actually caused by snap?) but it was certainly annoying to lose the ability to switch between windows of the same app (alt+~, I think this was a custom setting to resemble mac) if the latest window/project was opened as a new version of the app (alt+tab)

Re:Disabling automatic refresh for Snap from store by Brian_K_White on Saturday March 26, 2022 @11:56AM (#30812963)
FF has been driving me crazy lately.

Every other day it blows away all my open tabs and whatever I had going on in them.

I have a bunch of random tabs open, some with essentially "unsaved work", like shopping carts which may be the result of an hour of research, editing files in web interfaces like github or fluidd (web interface to a 3d printer) ... and randomly once every day or 3, I'll go to touch anything, any button in any of those tabs, like edit that config file some more, or try to save it... and kablooey, "firefox needs to restart" and I lose everything I had going.

This is a new thing that didn't used to happen.

Apparently the snap teams response to this story would be "Don't use FF like that."

Re:Disabling automatic refresh for Snap from store by lelouch11 on Saturday March 26, 2022 @12:11PM (#30813081)
I have a similar situation.

The issue here is that the apt update changes firefox program files underneath it which needs a restart. Afaik, using the mozilla release directly is the only solution for this where the program files are changed only after exit.

Edit: This has become more common nowadays due to multiple point releases close to each other, to fix some important bug.

Re:Disabling automatic refresh for Snap from store by kzrdude on Saturday March 26, 2022 @03:04PM (#30814378)
What, where is firefox only available as snap? I'm on Ubuntu 20.04 so haven't run into that yet.
Re:Disabling automatic refresh for Snap from store by stjohnswarts on Saturday March 26, 2022 @03:50PM (#30814791)
flatpak is a great alternative and it works well on ubuntu. Although I've just moved wholesale over to pop_os with flatpaks and LTS version.
Re:Disabling automatic refresh for Snap from store by rlpb on Saturday March 26, 2022 @10:10AM (#30811917)
> no auto-update controls

Maybe not what you want exactly but there are controls and claiming otherwise is misleading.

https://snapcraft.io/docs/keeping-snaps-up-to-date#heading--...

Re:Disabling automatic refresh for Snap from store by brianshaler on Saturday March 26, 2022 @10:16AM (#30811986)
Thank you for this. Severely limited controls are certainly better than no controls. Looks like timer can reduce breakages to no more than monthly, hold can prevent breakages for up to 3 months, and metered seems like it may be able to disable updates and subsequent breakages if I can figure how to trick the OS into thinking I'm always on a metered connection (which is actually true, but I'm on LTE via wifi)