Wayland socket not accessible inside vscode (snap) #95384
Labels
bug
Issue identified by VS Code Team member as probable bug
help wanted
Issues identified as good community contribution opportunities
linux
Issues with VS Code on Linux
snap
Issues related to the snap package
wont-fix
Milestone
This is a continuation of #80936. I am unable to comment on the original issue and will, therefore, give more details in this new issue.
Steps to Reproduce:
snap install code --classic
weston-terminal
Does this issue occur when all extensions are disabled?: Yes
Details:
Wayland clients connect via a socket to the server. The default socket is
$XDG_RUNTIME_DIR/wayland-0
, whereXDG_RUNTIME_DIR
will point to/run/user/$UID
in a normal environment.In
gnome-terminal
orxterm
, this socket is accessible:file $XDG_RUNTIME_DIR/wayland-0
will provide/run/user/1000/wayland-0: socket
.In the snap version of code, this socket is not accessible:
/run/user/1000/snap.code/wayland-0: cannot open '/run/user/1000/snap.code/wayland-0' (No such file or directory)
. One will notice thatXDG_RUNTIME_DIR
is now pointing to the non-existing subdirectorysnap.code
inside/run/user/$UID
.The Debian package offered on https://code.visualstudio.com does not show this issue. I presume that this is therefore caused by the snap confinement, and not by vscode per se.
The text was updated successfully, but these errors were encountered: