plasma-applet-tiledmenu icon indicating copy to clipboard operation
plasma-applet-tiledmenu copied to clipboard

Don't show "confirm" dialog on shutdown

Open SuNNjek opened this issue 4 years ago • 3 comments

Hello,

currently when I press the shutdown button in the lower left of the menu and select shutdown in the popup, I get another confirmation dialog like this:

Screenshot_20200619_183358

Since I already selected shutdown in the popup, it's a bit annoying to have to press yet another button to confirm the action after I already pressed two buttons. Is there a way to disable this and have my computer shutdown after the second click?

SuNNjek avatar Jun 19 '20 16:06 SuNNjek

https://userbase.kde.org/Plasma/Tips#disable-logout-shutdown-confirmation

Zren avatar Jun 19 '20 18:06 Zren

I guess I could document where the toggle is in the widget's config.

Or I could add a toggle that duplicates the function of that System Setting toggle. I would need to read ~/.config/ksmserverrc [General] confirmLogout=true. I'd need to confirm if writing directly to that file with kwriteconfig5 will apply the setting.

https://github.com/KDE/plasma-desktop/blob/master/kcms/ksmserver/smserversettings.kcfg#L6-L11

Zren avatar Jun 19 '20 18:06 Zren

I guess I could document where the toggle is in the widget's config.

Or I could add a toggle that duplicates the function of that System Setting toggle. I would need to read ~/.config/ksmserverrc [General] confirmLogout=true. I'd need to confirm if writing directly to that file with kwriteconfig5 will apply the setting.

https://github.com/KDE/plasma-desktop/blob/master/kcms/ksmserver/smserversettings.kcfg#L6-L11

I just tested this - and can confirm that simply editing the file and changing confirmLogout takes effect immediately.

matty-r avatar Jul 21 '20 00:07 matty-r