Summary: | Snap apps don't run anymore on Plasma Wayland 5.21 | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Nicola Jelmorini <jelmorini> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | kde, nate, plasma-bugs |
Priority: | HI | Keywords: | regression, wayland |
Version: | 5.21.0 | ||
Target Milestone: | --- | ||
Platform: | Snap | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=433657 | ||
Latest Commit: | Version Fixed In: |
Description
Nicola Jelmorini
2021-02-21 14:50:46 UTC
I can add that only snap apps with a GUI have this issue. Snap that use only the terminal run correctly. If you use the CLI, but run the app using `kstart5`, does the issue still happen? It seems like an Xauthority issue. Could it be that the Xauthority file is not forwarded to snap applications? Yes, or they run with a private /tmp I've installed snap on my system. X11 snap applications work as expected both in git master and 5.21. ``` ~ ❯ env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/firefox_firefox.desktop /snap/bin/firefox /usr/share/libdrm/amdgpu.ids: No such file or directory Gtk-Message: 15:19:56.118: Failed to load module "window-decorations-gtk-module" Gtk-Message: 15:19:56.118: Failed to load module "colorreload-gtk-module" [GFX1-]: glxtest: libpci missing ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost ~ 9s ❯ ``` Could it be an installation issue? or maybe neon doesn't ship some of the Xauthority patches in Plasma/5.21? As far as I understand, the contents of the host XAUTHORITY file is copied to snap. https://github.com/snapcore/snapd/blob/da5b5bb893e6bc733d63da561892901dcb42d934/cmd/snap/cmd_run.go#L534 https://github.com/snapcore/snapd/blob/da5b5bb893e6bc733d63da561892901dcb42d934/cmd/snap/cmd_run.go#L581 If I understand code correctly, snapd wants the host XAUTHORITY file to be in /tmp? If that's true, is snapd too nitpicky? Aha, if snap can't migrate the Xauthority file, it will just use the host authority file. @Nicola can you please check what value the XAUTHORITY environment variable has? echo $XAUTHORITY (In reply to Vlad Zahorodnii from comment #8) > Aha, if snap can't migrate the Xauthority file, it will just use the host > authority file. > > @Nicola can you please check what value the XAUTHORITY environment variable > has? > > echo $XAUTHORITY This is the output: ➤ echo $XAUTHORITY /run/user/1000/xauth_OtrFRQ This has been fixed upstream: https://github.com/snapcore/snapd/commit/11264948f151a3573249f19a9dbd4c48666efa8c |