I am not able to install vscode snap as it need classic confinement there. Is there be a work around ? Will classic confinement be available in Arch ?
Symlink /var/lib/snapd/snap to /snap.
I tried it now with snapd-git package and ran into problems. There’s something wrong with vscode
snap itself. For starters
maciek@corsair:~ vscode
/snap/vscode/19/usr/share/code/bin/../code: error while loading shared libraries: libselinux.so.1: cannot open shared object file: No such file or directory
Plus some other errors. I’ve posted the log here: https://paste.ubuntu.com/25979361
I was able to run it, but only after snap run --shell vscode
and going through the wrapper scripts to find the proper binary. The actual vscode binary is $SNAP/usr/share/code/code
and it works if you start it from snap shell.
The problem is in $SNAP/bin/electron-launch
helper (called by $SNAP/command-vscode.wrapper
) which sets up LD_LIBRARY_PATH
so that it picks up $SNAPusr/lib/x86_64-linux-gnu/libgio-2.0.so.0
, and that glib version is linked against libselinux.so.1
.
this worked for me, when I got the error, I used ln -s /var/lib/snapd /snap and fixed the issue for me
The command i used is:
sudo ln -s /var/lib/snapd/snap /snap