Bug 499423 - Non-Qt XWayland apps don't ask for confirmation/saving on logout
Summary: Non-Qt XWayland apps don't ask for confirmation/saving on logout
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (other bugs)
Version First Reported In: 6.2.5
Platform: Other Linux
: NOR grave
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-02 19:45 UTC by equeim
Modified: 2025-03-10 08:34 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description equeim 2025-02-02 19:45:29 UTC
SUMMARY
After logout/reboot/shutdown happened while Android Studio was running, launching it again fails with error about stale lockfile ("~/.var/app/com.google.AndroidStudio/config/Google/AndroidStudio2024.2/.lock" in case of Flatpak version). So it is probably not terminated 

STEPS TO REPRODUCE
1. Launch non-Qt XWayland app (e.g. gedit with GDK_BACKEND=x11 or Intellij IDEA)
2. Do something so that it asks for confirmation when you try to close the window
3. Log out of Plasma

OBSERVED RESULT
App does not show confirmation dialog, Plasma logs out immediately

EXPECTED RESULT
App shows confirmation dialog, Plasma does not log out until the app is closed

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed
KDE Plasma Version: 6.2.5
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.1

ADDITIONAL INFORMATION
I can reproduce this with Intellij IDEA Community, Inkscape, gedit.
Kate (when running with QT_QPA_PLATFORM=xcb) is not affected.
Comment 1 equeim 2025-02-02 19:46:41 UTC
Sorry for botched summary, IDK how to edit it.
Comment 2 John Kizer 2025-02-07 20:00:56 UTC
Hi - I can reproduce this on Plasma 6.2.5, KDE Neon VM.

I was initially thinking that this was a duplicate of https://bugs.kde.org/show_bug.cgi?id=477579 - however, unlike what was described in that issue, OnlyOffice also fails to prompt about unsaved work - there might be some connection still?

Thanks for the bug report!
Comment 3 Nate Graham 2025-02-19 18:59:40 UTC
CCing the David Squad to see if it's feasible for us to do anything about this, since it's rather bad and could cause data loss.
Comment 4 David Redondo 2025-02-20 08:01:41 UTC
As far as I can see, they dont connect to ksmserver.

Does this work in a X11 session?
Comment 5 Bug Janitor Service 2025-03-07 03:47:43 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 6 equeim 2025-03-07 23:36:43 UTC
(In reply to David Redondo from comment #4)
> As far as I can see, they dont connect to ksmserver.
> 
> Does this work in a X11 session?

The behaviour seems the same in X11 session, non-Qt apps are just killed even if they have unsaved data.
Comment 7 David Redondo 2025-03-10 08:34:16 UTC
Nothing we can do there then.