openSUSE Tumbleweed Snap application cannot open display: :0

When attempting to run teams-for-linux

(teams-for-linux:5949): Gtk-WARNING **: 21:03:29.354: cannot open display: :0

This happens with Bitwarden as well:

(bitwarden:11815): Gtk-WARNING **: 21:16:56.116: cannot open display: :0

snap version

snap 2.45.2-1.4
snapd 2.45.2-1.4
series 16
opensuse-tumbleweed 20200716
kernel 5.7.7-1-default

Searching through forums, I ran this:

xhost +local:
non-network local connections being added to access control list

I ran it again, it runs but not without error and the system tray icon is missing.

teams-for-linux
Gtk-Message: 21:38:56.187: Failed to load module “colorreload-gtk-module”
configPath = /home/wolfnf/snap/teams-for-linux/105/.config/teams-for-linux
Failed to get the config file, using default values
configFile = {}
Error org.freedesktop.DBus.Error.Failed: cannot use setting “default-url-scheme-handler”: not allowed
processArgs [ ‘/snap/teams-for-linux/105/teams-for-linux’ ]

(teams-for-linux:25085): GLib-GIO-CRITICAL **: 21:38:57.958: g_dbus_proxy_new: assertion ‘G_IS_DBUS_CONNECTION (connection)’ failed

The applications are at least usable but I would like to help improve this if possible.

Thanks!

At every boot I have to run xhost +local:at every boot to get my Snap applications going. Is there something globally that could be changed to fix this?

IIUC, xhost +local is not recommended for a multi-user machine (and perhaps not even for a single user machine) because it allows other users access to X11.

When you do not run xhost +local and then try to use snaps, do you see any system journal denials via dmesg or journald ?

Here is what my journald reports:
Aug 09 13:17:49 Icarus kwin_x11[2936]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 58769, resource id: 44044302, major code: 18 (ChangeProperty), minor code: 0
Aug 09 13:17:49 Icarus systemd[2638]: apps-teams\x2dfor\x2dlinux_teams\x2dfor\x2dlinux-76df91a86f224eca8376a46693abf1d4.scope: Succeeded.

there is nothing under dmesg

I am not completely sure of the security concerns but I am very willing to be educated. My issue is, I do need those snaps working and that is my interim workaround until whatever is holding it up can be fixed.

Thanks!

As of snapshots 20200813 forward, there have been no issues with starting most Snaps. I would call this closed but this does seem to pop up from time to time.

2 Likes