I’m trying to snap Neofetch, a system info script, but haven’t had much luck so far (the
snapcraft.yaml is in this Issue) :’(
Neofetch won’t display information for (computer) Model, (window) Theme, or Icons (e.g.
ubuntu-mono-dark) when confined (it displays them fine when not confined).
sudo /snap/bin/snappy-debug.security scanlog neofetch just hangs, so I can’t use that.
grep "audit:" /var/log/syslog tells me that access was blocked to:
Full log here.
plugs do I need to use to enable this information to be displayed in Neofetch?
This is the priority, if I can give the interfaces to enable the info for Model, Theme, and Icons, I’ll ask upstream to release this into the store. I tried giving the
x11 plug but that hasn’t enabled any of those three.
However there are some other bugs which would be cool to fix if possible:
- Packages, WM Theme, and GPU are missing from the unconfined snap too (when compared with the Deb)
- Counting snap packages is an upstream issue, but it can’t seem to detect Deb packages even when unconfined although the Deb of neofetch can detect Deb packages.
- WM Theme seems to be usually the same as Theme, so that may not be an issue
- We can’t change locale
- Silencing the locale error, not setting the locale to
C (disabling Unicode) would make the snap of Neofetch up to 2x slower than the Deb
According to the upstream dev, you can’t run it with just
neofetch (at least, on Arch?), you have to use
snap run neofetch
- According to the upstream dev, it doesn’t detect the distro right on Arch (have asked for a retest to see what happens now). On mine it reports as
Ubuntu Core 16 x86_64, is that correct? I thought
core was renamed from
ubuntu-core for a reason… Have asked the dev to test on Arch to see what the distro is reported as there.
- Disk reports the size of the snap mount instead of the system disks (but this is similar to what happens in Windows Subsystem for Linux so may be a problem on the app’s side)
Also I haven’t tested some non-default stuff (like detecting what music is playing), I’ve only really tested what happens when running
snap run neofetch. Further, with the dependencies bundled, the size of the snap is 63.7 MB, without it is 65.5 KB, I’m not sure which can be stripped out though or which could be bundled as
parts with build flags that strip out unnecessary parts.
Neofetch Strict snap