The $HOMEenvironment variable is overwritten by the snap to point to the snap directory, not the user’s home directory. This makes sense and works in most cases. I added the home plugin so my snap can read the homefolder.
Is there are smart way to point to the real user’s homedir? I can’t hardcode /home/fiber/ in my wrapper script.
I tried using /home/$(whoami) but that doesn’t seem to work: