Bug 432404 - Add settings for which power/session buttons are displayed
Summary: Add settings for which power/session buttons are displayed
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Application Launcher (Kickoff) widget (show other bugs)
Version: master
Platform: Neon Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-02 01:37 UTC by Justin Zobel
Modified: 2024-12-28 09:42 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 Justin Zobel 2021-02-02 01:37:23 UTC
Running git master with new kickoff.

I'd like to be able to change the Sleep/Restart/Shut Down buttons to an order and selection of my choosing.

e.g. Logout Restart Shutdown.
Comment 1 Mikel Johnson 2021-02-02 12:19:01 UTC
While adding UI is currently not being considered you can still achieve the desired customization by manually editing config file

Here's a step by step guide:

1. Open ~/.config/plasma-org.kde.plasma.desktop-appletsrc

2. Find the following line: `plugin=org.kde.plasma.kickoff`

3. Below there should be this line: `[Containments][*][Applets][*][Configuration][General]` (you can't go below `plugin=other plugin`)

4. Under that line insert `primaryActions=2` and `systemFavorites=x` where x is the list of wanted action with `,` as a separator

For example: `systemFavorites=logout,reboot,shutdown` for Logout, Restart and Shutdown


here's a list of all actions (name in UI in brackets if it differs):

suspend(sleep),hibernate,reboot(restart),shutdown,lock-screen,logout,save-session,switch-user
Comment 2 Mikel Johnson 2021-02-02 12:25:19 UTC
the line of thought being that the feature is too niche to justify having what would be a pretty convoluted UI (when most of the people who request such feature would be satisfied with it being config only)
Comment 3 Nate Graham 2021-02-02 15:22:00 UTC
> (when most of the people who request such feature would be satisfied with it
> being config only)
In general  we try to avoid this. Options that are programmed in the code but not exposed in the GUI tend to bit-rot due to lack of usage.

Would/will be fixed by merging https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/288
Comment 4 Mikel Johnson 2021-02-02 15:59:34 UTC
> In general  we try to avoid this. Options that are programmed in the code
> but not exposed in the GUI tend to bit-rot due to lack of usage.

it can't bit rot because the config option *already* relies on it (they already use `primaryActions` and `systemFavorites`)
Comment 5 Dainius Masiliūnas 2021-07-30 09:44:00 UTC
The patch proposal was interesting, but it seems that it was dropped in the end, correct? So what is the current plan to implement this?

Note that I would personally just like kickoff to adhere to the settings in systemsettings, just like it did before. In systemsettings > Startup and Shutdown > Desktop Session, there's already the option "Offer shutdown options". Before, disabling this option would remove shutdown options. Now the button doesn't seem to do anything at all. This is a big problem for everyone who is running a shared server system, as it's much easier for users to shut down the whole server by accident.