Bug 493181 - Unable to logout when I replace Kwin with BSPWM
Summary: Unable to logout when I replace Kwin with BSPWM
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.1.5
Platform: NixOS Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-16 02:02 UTC by sai
Modified: 2024-11-26 18:13 UTC (History)
4 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 sai 2024-09-16 02:02:58 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
After following the documentation, I tried to replace KWin with BSPWM in X11. I did this by masking the `plasma-kwin_x11.service` and using the following for bspwm:
```
[Install]
WantedBy=plasma-workspace.target

[Unit]
Description=Plasma with BSPWM
PartOf=graphical-session.target
Before=plasma-workspace.target
After=plasma-kcminit.service


[Service]
ExecStart=/run/current-system/sw/bin/bspwm
Slice=session.slice
Restart=on-failure
```
Everything works as expected, except that now I am unable to logout. This is the relevant entry I found in journal logs:
```
Sep 15 20:31:32 <username> plasma-shutdown[17290]: org.kde.plasma.shutdown: KWin failed to complete logout
```
I am guessing that the shutdown method is interrupted by the unnatural absence of KWin service. If the service is masked, the shutdown service should, imo, should continue smoothly. 

OBSERVED RESULT
Unable to logout, presented with a blank screen and cursor, BSPWM is still active. plasma-shutdown is interrupted. 

EXPECTED RESULT
Successful logout and be presented with login screen. 

SOFTWARE/OS VERSIONS
Linux: Nix os kernel 6.6.50
DE Plasma Version: Plasma 6.1.5 
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Comment 1 sai 2024-10-31 15:58:32 UTC
Is there an alternative command I can use to logout instead, which will work regardless of the presence of kwin? The only way it works now is to kill the ksmwrapper from commandline each time. I can use a dmenu with options to logout and shutdown or reboot as well.