When I disconnect the thunderbird from the x11 interface, thunderbird crashes saying it cant find the wayland socket. If I add a link to the wayland socket inside the container, thunderbird works fine. That is on ubuntu 22.04.
This also probably means that the thunderbird snap actually never uses native wayland and falls back to xwayland (because the wayland socket can not be found).
This unintended use of xwayland could be construed as a security issue, but someone who mistrusts snaps using x11 (like me) will remove the permission which leads to failure instead of a security issue.
$ snap run thunderbird ## BROKEN
...
[GFX1-]: glxtest: libpci missing
[GFX1-]: glxtest: Could not connect to wayland socket
[GFX1-]: No GPUs detected via PCI
(thunderbird:103861): Gtk-WARNING **: 12:37:14.162: cannot open display: :1
ExceptionHandler::GenerateDump cloned child 103976
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...
$ snap run --shell thunderbird ## FIXING IT
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
user@user-mycomputer:/$ ln -s /run/user/1000/wayland-0 $XDG_RUNTIME_DIR/ ; exit
$ snap run thunderbird ## NOW IT WORKS
When I disconnect the thunderbird from the x11 interface, thunderbird crashes saying it cant find the wayland socket. If I add a link to the wayland socket inside the container, thunderbird works fine. That is on ubuntu 22.04.
This also probably means that the thunderbird snap actually never uses native wayland and falls back to xwayland (because the wayland socket can not be found).
This unintended use of xwayland could be construed as a security issue, but someone who mistrusts snaps using x11 (like me) will remove the permission which leads to failure instead of a security issue.
$ snap run thunderbird ## BROKEN
...
[GFX1-]: glxtest: libpci missing
[GFX1-]: glxtest: Could not connect to wayland socket
[GFX1-]: No GPUs detected via PCI
(thunderbird: 103861) : Gtk-WARNING **: 12:37:14.162: cannot open display: :1 r::GenerateDump cloned child 103976 r::SendContinue SignalToChild sent continue signal to child r::WaitForConti nueSignal waiting for continue signal...
ExceptionHandle
ExceptionHandle
ExceptionHandle
$ snap run --shell thunderbird ## FIXING IT
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
user@user- mycomputer: /$ ln -s /run/user/ 1000/wayland- 0 $XDG_RUNTIME_DIR/ ; exit
$ snap run thunderbird ## NOW IT WORKS
$ lsb_release -rd ## UBUNTU VERSION
Description: Ubuntu 22.04.1 LTS
Release: 22.04
$ snap interfaces thunderbird ## SNAP CONFIGURATION 38-2004: gnome-3- 38-2004 thunderbird themes: gtk-3-themes thunderbird themes: icon-themes thunderbird themes: sound-themes thunderbird browser- sandbox etc-thunderbird -policies dbus-daemon - avahi-observe gpg-keys network- control removable- media u2f-devices
Slot Plug
gnome-3-
gtk-common-
gtk-common-
gtk-common-
:audio-playback thunderbird
:browser-support thunderbird:
:cups-control thunderbird
:desktop thunderbird
:desktop-legacy thunderbird
:gsettings thunderbird
:home thunderbird
:network thunderbird
:opengl thunderbird
:system-files thunderbird:
:wayland thunderbird
thunderbird:
- thunderbird:
- thunderbird:camera
- thunderbird:
- thunderbird:
- thunderbird:
- thunderbird:
- thunderbird:x11
$ snap info thunderbird ## THUNDERBIRD SNAP VERSION
...
installed: 102.7.0-1 (288) 106MB -
$ snap --version ## SNAPD etc VERSION
snap 2.58
snapd 2.58
series 16
ubuntu 22.04
kernel 5.15.0-57-generic