Bug 469274 - Logout scripts should be executed before Plasma and KWin terminate
Summary: Logout scripts should be executed before Plasma and KWin terminate
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Startup process (show other bugs)
Version: 5.27.2
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-02 15:45 UTC by Sadi
Modified: 2023-05-17 00:17 UTC (History)
3 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 Sadi 2023-05-02 15:45:05 UTC
SUMMARY
***
I have a logout script to check if there are any files that I forgot in several temporary folders before logging out.
This logout script was skipped when I choose to restart automatically during Discover offline updates, which has been fixed recently. However, maybe in connection with this fix, my logout script is executed now after (I think) plasmashell is terminated, so if there are some files that I forgot in those temporary folders, Dolphin opens such a folder to take some action but without any window decoration, menu, or even shortcut keys working, which makes it difficult to quit at the end.
***


STEPS TO REPRODUCE
1. Use a logout script that will open, say, "/tmp" with Dolphin 
2. Close any Dolphin window, and log out

OBSERVED RESULT
The system terminates plasmashell first (I think), and then exectues the logout script, opening a Dolphin window displaying the contents of "/tmp" folder, but without titlebar, menu, shortcut keys etc.

EXPECTED RESULT
The logout script should be executed before plasmashell is terminated.

SOFTWARE/OS VERSIONS
Operating System: SparkyLinux 7 (Debian Testing/Bookworm)
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8