Hacker News new | ask | show | jobs
by cies 2250 days ago
Ubuntu had the calculator as a snap! What's the idea with that? It suddenly took 2 secs to load and uses load of memory...

I dont care packaging got easier. I care for a smooth working system I can understand and instrument, and that does not hog resources.

4 comments

Snap and flatpak are great fallback methods. I first try installing software natively, but sometimes it's not available/compatible and you really need it to work, so flatpak is great to just get it running at all.

I'm not a fan of using it as the default though, and flatpak isn't immune to issues either, for example I use a flatpak package which regularly can't be updated for months because of some incorrect metadata if the error message can be believed.

I still think it's a good step forward for increasing compatibility especially across different Linux distributions.

They may be fallback methods, but snap is for sure not "great" (not a finished product as other have pointed out). As you also understood, snap is sadly not promoted as a fallback method.

This stuff is pushed with corporate power. Not adopted because great great fallback method it provides.

The compatibility is also balkanized for the start with the flatpack/snap split. Pfff, what a mess.

Oh! Is _that_ why the calculator is nigh unusable now? Sheesh, this just shot snap's credibility right out the window. It's faster for me to boot up the node executable and do my calculations there.
The minimal fix for the sluggish calculator on Ubuntu 18.04 to 19.10:

  sudo snap remove gnome-calculator
  sudo apt install gnome-calculator
The more complete solution is entirely removing snap. I did that long ago, but my process was a little painful. From my logs, it went something like this:

  snap list
  snap remove <copy-paste packages from above>
  sudo service snapd restart # core is tricky to get rid of
  sudo snap remove core
  snap list # check it's empty
  sudo apt install gnome-calculator gnome-characters gnome-logs gnome-system-monitor
  sudo apt purge snapd squashfs-tools gnome-software-plugin-snap
  rm -r ~/snap
See also: https://ubuntuforums.org/showthread.php?t=2409173&p=13826670...
`bc -l` is pretty awesome.
And some times, on some systems, the calculator got all transparent, and unusable, so, I left Ubuntu after that. Granted I was on LTS'es almost all of the time, so, this might be highly circumstantial and subjective. But I've been there as you apparently also have. I hope snap improves for the best of all, it seems amateurish to push snap-apps, at their then-current state, in LTS releases. I left basically after Ubuntu 14.04, and even that, 14.04, was a let-down from 12.04, and so on. In my experiences.
Do you know why, technically, being packaged as a snap would increase start time and memory usage?