Bug 488998 - Clicking on "Save Session" breaks Shutdown, Restart and Logout in Kickoff
Summary: Clicking on "Save Session" breaks Shutdown, Restart and Logout in Kickoff
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.1.0
Platform: Manjaro Linux
: NOR major
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-22 18:15 UTC by medin
Modified: 2024-11-20 20:13 UTC (History)
6 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 medin 2024-06-22 18:15:19 UTC
When you click on "Save Session" in Kickoff, then try to click on Shutdown, Restart or Logout it will fail, the only way to achieve it is using terminal command "shutdown" or holding the power off button to force it.

Operating System: Manjaro Linux 
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.9.6-1-MANJARO (64-bit)
Graphics Platform: Wayland
Comment 1 Marco Martin 2024-06-27 12:34:37 UTC
can reproduce
Comment 2 Marco Martin 2024-06-27 12:43:41 UTC
the plasma-shutdown spawns and remains stuck forever when save session is clicked.

killing plasma-shutdown makes the logout actions work again
Comment 3 Marco Martin 2024-06-27 13:07:30 UTC
Actually i can reproduce only on a system with plasma built from kdesrc-build, where plasma-shutdown is wrongly picked from /usr/bin from the packaged version rather than the self built.

This makes me suspect that it might be a packaging issue
Comment 4 medin 2024-06-27 18:41:21 UTC
(In reply to Marco Martin from comment #3)
> Actually i can reproduce only on a system with plasma built from
> kdesrc-build, where plasma-shutdown is wrongly picked from /usr/bin from the
> packaged version rather than the self built.
> 
> This makes me suspect that it might be a packaging issue


I don't know if I'm right, but isn't plasma-shutdown owned by plasma-workspace package? 

And everything is compiled by Arch at the same time? There is no external source that provides a separate plasma-shutdown binary.

https://gitlab.archlinux.org/archlinux/packaging/packages/plasma-workspace/-/blob/main/PKGBUILD?ref_type=heads
Comment 5 Lassi Väätämöinen 2024-06-28 17:28:07 UTC
Happens on openSUSE Tumbleweed too.

Operating System: openSUSE Tumbleweed 20240627
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 580 Series
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B79
System Version: 4.0


Session save/restoration is all kinds of broken. Looks like Firefox is the only application remembered upon session restore, no KDE applications that I have tried so far get restarted.
Comment 6 Lassi Väätämöinen 2024-06-28 17:35:20 UTC
(In reply to Lassi Väätämöinen from comment #5)
> Session save/restoration is all kinds of broken. Looks like Firefox is the
> only application remembered upon session restore, no KDE applications that I
> have tried so far get restarted.

Just to clarify, upon auto-save session the apps are not remembered.
Manually saved sessions' applications seem to be started properly after logout/login.
Comment 7 Toralf Förster 2024-11-20 20:13:56 UTC
Same problem here, at a stable hardened Gentoo with keyworded Plasma 6.2.3, Gear 24.08.3, KF 5.116.0, KF 6.8.0
If I save a session, then only
  DISPLAY=:0 qdbus6 org.kde.Shutdown /Shutdown org.kde.Shutdown.logout
works to really log out.