`XDG_SESSION_TYPE` is wayland when this problem occurs.
Problem Description:
As the title says, google chrome and any other electron app (vscode, Positron, etc…) fail to start on a wayland session. They run just fine under X11.
Running google-chrome on the terminal doesn’t return anything. It just hangs.
Relevant System Information:
Dell Inc. Precision 5480
Apologies. I’ve updated the OP to make it clear. Yes, I am not 24.04 and GNOME (just default desktop). I also added `XDG_SESSION_TYPE`, which is wayland.
Nope. code and positron just give back the prompt with no message.
ferdium and obsidian (both flatpak) return [2:0805/132944.164861:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory and hang like chrome. They give the same message under X11, though.
slack and mailspring hang the terminal just like chrome.
That quote there contradicts your edit in the original post; your original post says 24.04 and GNOME where you say there NOT 24.04 ?? A typo?
I’m on a newer release, and if I run google-chrome here I see
guiverc@d7050-next:/de2900/lubuntu_64$ google-chrome
[625974:626001:0805/140507.172782:ERROR:nss_util.cc(345)] After loading Root Certs, loaded==false: NSS error code: -8018
Fontconfig error: Cannot load default config file: No such file: (null)
and the browser opens (and continues playing a youtube music video I was likely listening to last time it was running); I’m using GNOME and a Wayland session myself too…
Next place I’d look is likely dmesg; looking for apparmor or other clues/stoppages (systemd journal next). Whilst Ubuntu apps (from Ubuntu repositories) have apparmor profiles setup for us, for third party packages like you mention they need to be added yourself.
Timestamps for dmesg are not as readable, as they’re seconds from boot, but in contrast time stamps in the systemd journal are, which I can view with sudo journalctl
Those messages however go back months (don’t start again on reboot), even possibly to install.
( the whole of those lines didn’t fit in my terminal, and I didn’t bother adjusting to make it fit - I can search using standard POSIX search features like any Unix type of box )
I don’t think the dbus message is the issue. The apps seem to work ok on X11 with that message. Chrome and vscode are installed from debs and don’t run either without complaining. I am also not using snaps for any of those apps.
Well, I’m loosing my mind a bit here. Having found this, I tried with google-chrome --disable-gpu, which worked (eventually). So gpu seemed to be the issue. I decided to test if changing to the nvidia drivers would solve it, but when I tried, I got this error
So it reverted. After rebooting for good measure, I’m still using the open source drivers as before (so, no change) but chrome and electron apps do work. I have absolutely no idea what happened.