Thunderbird doesn't launch immediately when launched from the launcher

I’m not sure why it’s not doing that. It tends to launch immediately from the terminal, but not from the application launcher (tends to take at least 3 tries).

$ snap --version
snap    2.59.1+23.04ubuntu1
snapd   2.59.1+23.04ubuntu1
series  16
ubuntu  23.04
kernel  6.2.0-20-generic

Terminal output:

$ snap run thunderbird
Gtk-Message: 01:34:01.311: Failed to load module "colorreload-gtk-module"
Gtk-Message: 01:34:01.311: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 01:34:01.311: Failed to load module "appmenu-gtk-module"
[GFX1-]: glxtest: libpci missing
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Missing chrome or resource URL: resource:///modules/gloda/GlodaConstants.jsm
Missing chrome or resource URL: resource:///modules/gloda/GlodaConstants.sys.mjs

Does this help ?? --> xdg-desktop-menu forceupdate

Try to do this in terminal

This often happens with many snaps. But, most probably it has something to do with the desktop file itself. When you type snap run *****, the binary file under /snap/bin is directly triggered. But when you click the desktop file, it first triggers which is in the Exec=....., then that command is executed within its confinement, and then in most cases it triggers the binary file under /snap/bin, which again triggers the binary file under $SNAP/usr/bin or where it’s located. I guess this chain of executions makes it late.

“Late” would imply it would launch a little later. There are times where it just doesn’t work.

If this were to happen again, any idea how I’d be able to debug it?

It’s already in the menu

I got you. I also often face it with firefox. But, I never thought about that. @alexmurray can you look into this?

This issue sounds a lot like https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2011806

Is there an ETA for this?

Starting to notice other Snaps, like Brave, are affected too.

Starting to get annoying.

I don’t face it anymore though.

I’m still experiencing it with Brave and Thunderbird.

Doesn’t seem to happen with Firefox, though

Nov 14 20:12:55 Y4M1-II systemd[9205]: Started snap.thunderbird.thunderbird-218c47bb-9cdf-4585-8487-1e76547933b3.scope.
Nov 14 20:12:55 Y4M1-II systemd[9205]: Started app-thunderbird_thunderbird-4758a597c99d427f91814da5b05c365a.scope - Thunderbird Mail - Mail Client.
Nov 14 20:12:55 Y4M1-II plasmashell[133984]: /user.slice/user-1000.slice/user@1000.service/app.slice/app-thunderbird_thunderbird-4758a597c99d427f91814da5b05c365a.scope is not a snap cgroup
Nov 14 20:18:39 systemd[9205]: Started snap.brave.brave-0149a21f-9f53-4774-9189-d26c3e467622.scope.
Nov 14 20:18:39 systemd[9205]: Started app-brave_brave-ef45525cece44fb8aec48a679c000d9d.scope - Brave Web Browser - Web Browser.
Nov 14 20:18:39 kwin_x11[9529]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9515, resource id: 33557375, major code: 18 (ChangeProperty), minor code: 0
Nov 14 20:18:39 plasmashell[136250]: /user.slice/user-1000.slice/user@1000.service/app.slice/app-brave_brave-ef45525cece44fb8aec48a679c000d9d.scope is not a snap cgroup
Nov 14 20:18:39 kwin_x11[9529]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 9550, resource id: 33557376, major code: 18 (ChangeProperty), minor code: 0

My Bitwarden was affected after I forced quit it.

still happening from time to time (u22.04). Looking at bug ticket posted above, I wonder if the fix is only for 23.04 and later versions, or if there is a fix at all (it’s not clear)

Hasn’t happened recently. Gonna try and keep my system’s uptime as high as possible

> snap --version
snap    2.61.1
snapd   2.61.1
series  16
ubuntu  23.10
kernel  6.5.0-17-generic