Zren / plasma-applet-tiledmenu

https://store.kde.org/p/2142716/
140 stars 35 forks source link

Don't show "confirm" dialog on shutdown #70

Open SuNNjek opened 4 years ago

SuNNjek commented 4 years ago

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?

Zren commented 4 years ago

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

Zren commented 4 years ago

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

matty-r commented 4 years ago

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.