| Summary: | X11 applications may not autostart properly in a Wayland session due to various important environment variables not being set | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | einbert-xeride |
| Component: | Startup process | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | REOPENED --- | ||
| Severity: | normal | CC: | alikooshafarzan, auxsvr, darkstar723, eugene.shalygin+bugzilla.kde, idoybh2, javier.tia+bugzilla.kde, kde, kde, leodream2008, nate, pedrobenner, postix, sam, tbacc+kde |
| Priority: | NOR | Keywords: | wayland-only |
| Version First Reported In: | 5.27.5 | ||
| Target Milestone: | 1.0 | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
einbert-xeride
2023-05-16 07:58:07 UTC
Good investigation, thanks a lot for that. I can confirm this happens on Plasma 6. Didn't happen on Plasma 5 though Steam fails to autostart, "Unable to open a connection to X" "Check your DISPLAY environment variable and make sure that you have enabled X." Operating System: Arch Linux KDE Plasma Version: 6.0.1 KDE Frameworks Version: 6.0.0 Qt Version: 6.6.2 Kernel Version: 6.7.9-arch1-1 (64-bit) Graphics Platform: Wayland This bug somehow fixed itself in the latest version: KDE Plasma Version: 6.0.5 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.1 Kernel Version: 6.9.3-arch1-1 (64-bit) Graphics Platform: Wayland Can't figure out the exact version that fixed this bug as I didn't check after each update. Anyway, seems that this bug disappears in the latest version. Autostart of X11 applications works again. Not sure this is fixed. I'm having this issue in 6.1.5, Steam is presenting as "Unable to open a connection to X" Signal presents as "Missing X server or $DISPLAY" Slack also presents as "Missing X server or $DISPLAY" Not consistent, but I'd estimate autostart applications work as expected about 25% of the time. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.2 Kernel Version: 6.10.10-zen1-1-zen (64-bit) Graphics Platform: Wayland That's a different issue, and points to deeper setup issues on your machine. I would recommend asking Arch folks for help on the Arch forum. (In reply to Nate Graham from comment #5) > That's a different issue, and points to deeper setup issues on your machine. > I would recommend asking Arch folks for help on the Arch forum. Are we sure? My $DISPLAY variable is in fact set and does work after login and this didn't start happening until the system was updated to KDE 6.1.5 specifically. Hmm, OK, maybe it is the same thing after all. I have signal-desktop with --ozone-platform-hint=auto in the autostart as application (so I suppose it is launched via the .desktop file). When launched via KRunner, this electron app detects wayland and uses it, however the autostarted instance is launched via XWayland. And on one of the affected machines the autostarted Signal does not peek up the UI font. Plasma 6.2.2. I believe I'm having the same problems when trying to launch some of my apps like spotify and stretchly. For now, I'm circumventing it by using the "On login, launch apps that were open: When session was manually saved" option from settings. I probably have the same issue, started Wayland session does not set the following environment variables: - DISPLAY - SESSION_MANAGER - XAUTHORITY As a result, several X11 apps won't work, including Steam, Heroic, Spotify, ZapZap, ProtonMail, Standard Notes etc. When I switch to X11 session and back to Wayland, it works normally. OS: CachyOS x86_64 KDE Plasma 6.4.5 Qt Version: 6.10.0 Kernel Version: Linux 6.17.4-4-cachyos (64-bit) Graphics Platform: Wayland |