I am currently running MX Linux, a distribution which does not run systemd by default. As snap/snapd uses systemd as a soft dependency this got in the way of being able to install snap packages.
I have found a way to mostly work around this issue using a shell script which intercepts snapd requests for mounting snap/squashfs archives and tries to act the way systemctl would.
I have managed to get snaps installed (yay!) and got two out of three snaps to even run. The gory details of how I got that far are here: https://forum.mxlinux.org/viewtopic.php?f=94&t=44060&p=435179&hilit=snapd#p435179
The problem I’m facing now is the last few rough edges. Specifically two things:
-
I cannot run snaps from the /snap/bin/ directory. I need to run mounted snaps using their full path name, such as /snap/hello-world/27/bin/hello-world. For some reason the /snap/bin/hello-world symbolic link does not world. I get the error message: “cannot create temporary directory for the root file system: Permission denied”
-
On a related note, apps don’t seem to be contained. For example, if I try to run the VLC binary, it links to my system libraries, not its own bundled Snap libraries.
In short, I’m got snap packages installed, but they don’t seem to be contained/mounted properly when I go to run them. I’d appreciate some help smoothing out these last few edges as it would allow people on non-systemd platforms to run Snaps.