The proposed solution would be great, but one tweak would be nice: instead of putting snap.$SNAP_NAME directly into the XDG_RUNTIME_DIR, consider creating a new subdirectory, to avoid cluttering the top-level.
The proposed solution would be great, but one tweak would be nice: instead of putting snap.$SNAP_NAME directly into the XDG_RUNTIME_DIR, consider creating a new subdirectory, to avoid cluttering the top-level.