Bug 467017 - Add global action/shortcuts for Restart (with confirmation)
Summary: Add global action/shortcuts for Restart (with confirmation)
Alias: None
Product: ksmserver
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.2
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Edmundson
Depends on:
Reported: 2023-03-07 16:56 UTC by David
Modified: 2023-03-18 11:26 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.0


Note You need to log in before you can comment on or make changes to this bug.
Description David 2023-03-07 16:56:47 UTC
There is a shortcut (Ctrl+Alt+Del by default) to trigger the logout dialog with "Log Out" pre-selected. One can generate similar shortcuts for the same dialog with a different option pre-selected by using a widget, but there aren't any such direct shortcuts from the system settings menu to set it.

1. Try to assign the shortcut Ctrl+Alt+Del to the logout dialog with the "Restart" option pre-selected.

Not possible from the system settings, and not possible to configure the default option after someone decided to remove it in the latest plasma.

Should have an easy way to have Ctrl+Alt+Del trigger the logout dialog with "Restart" pre-selected without involving external widgets.

Operating System: Debian GNU/Linux 12
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-5-amd64 (64-bit)
Graphics Platform: X11
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 62.6 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: SLIMBOOK
Product Name: Executive
Comment 1 Nate Graham 2023-03-13 19:45:52 UTC

*** This bug has been marked as a duplicate of bug 465584 ***
Comment 2 David 2023-03-13 19:49:43 UTC
(In reply to Nate Graham from comment #1)
> *** This bug has been marked as a duplicate of bug 465584 ***

But this is not a duplicate: it's very reasonable to want different shortcuts for "restart", "shutdown", "sleep"; regardless of what's the default logout option.
Comment 3 Nate Graham 2023-03-13 19:58:24 UTC
All right, fair enough. I do see that we have an action "Reboot without confirmation" so it probably does make sense to add a companion "Reboot [implicitly with confirmation]" action to go along with it.
Comment 4 Nate Graham 2023-03-14 20:55:09 UTC
Git commit 35e11117a2543316527fe17501e6a192f3676ccc by Nate Graham.
Committed on 14/03/2023 at 20:53.
Pushed by ngraham into branch 'master'.

ksmserver: replace "Halt" with "Shut Down" in user-facing text

"Halt" is technically unclear to the user and sounds vaguely
threatening. Let's instead use the more common, clear, and user-friendly
term "Shut Down" that we use everywhere else.

M  +2    -2    ksmserver/server.cpp

Comment 5 Bug Janitor Service 2023-03-14 21:19:08 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2747
Comment 6 Nate Graham 2023-03-15 01:32:32 UTC
Git commit bd338de726562444fa8b60695cb2dec90499eb58 by Nate Graham.
Committed on 15/03/2023 at 01:07.
Pushed by ngraham into branch 'master'.

ksmserver: add "with confirmation" actions for Shut Down and Restart

Currently we have one of these only for logging out, but not also for
restarting or shutting down. Let's add them for consistency's sake.

M  +23   -0    ksmserver/server.cpp
M  +2    -0    ksmserver/server.h

Comment 7 ratijas 2023-03-18 11:26:57 UTC
Oh, cool!  I have almost missed this thread.

Now I just need to finish my patch that binds "without confirmation" and regular shortcuts to Kickoff footer UI.