Description of problem: Irrespective of the setting in the "Desktop Setting" when the logout icon it clicked upon the session exits using the "shutdown" default, this is even if the shutdown option have been disabled. This can cause the system to be inadvertently shut down when the user merely wants to log out. This is especially a problem on multi-user systems where you have remote users using the computer. Version-Release number of selected component (if applicable): How reproducible: Always. Steps to Reproduce: 1.Open systemsettings5 and navigate to "Startup & Shutdown"->"Desktop Settings" 2.Set "Default leave option" to be "End current session" and apply. 3.End current session and observe. Also, try turning off "Offer shutdown options" and see that the session still attempts to shut down the computer.
Thank you for the report. You omitted one essential detail: which desktop? And because it is possible that there is more than one way to logout etc, can you please say exactly which path(s) you take to show the fault. For example, you mention a/the "logout icon", and "End current session". Several possibilities. If you are talking Plasma, I seem to recall that Logout and Shutdown are quite separate. I will obviously look when you reply; I scarcely use Plasma.
CC: (none) => lewyssmith
Thats a problem in KDE Plasma Version 5.20.x In your taskbar you have there two buttons. One says "lock" and the other one "Leave". If you hover over "Leave" there is a pop up which says "Log out, turn off or restart the computer". But this is actual not connected to the settings in systemsettings5 -> "Startup & Shutdown"->"Desktop Settings" -> "Default leave option" This button ALWAYS shut down the computer. You can circumvent an accidently shutdown by activating the "Confirm logout" option in systemsettings. It will give you 30sec befor shutdown. You can also rightclick the icon in the taskbar and chose "Configure Lock/Logout". There you can remove the "Leave" button and replace it against "Switch user" button. In Cauldron we have KDE Plasma 5.23.x There you have to possibility to add a real "Logout" button to the taskbar via rightclick on the Leave button and chose "Configure Lock/Logout". But this applet is still not reacting to the settings from systemsettings5 -> "Startup & Shutdown"->"Desktop Settings" -> "Default leave option"
Saying that the "Leave" button always shut down the machine is untrue. This was never the case in KDE1, KDE2 or KDE3. Indeed, until I upgraded the machine to Mageia 8 logging out was the default. The systemsettings Session control panel could change this. If you'd like me to check I can spin up machines with these older versions running if you like. I've been building and using KDE since its first release in the mid-1990s. systemsettings session control panel has always (since KDE4?) controlled the action of the button, as this is its only function. Previously, running the systemsettings program when logged in as root would set the defaults for all users on the system, including removing the shutdown options. With regards to the shutdown options, in Plasma (KDE4) the buttons for suspend and shutdown were completely removed if the option to remove them was ticked. The "Leave" button now ignores these settings. "Disabling" the shutdown options merely darkens them in the choice but doesn't prevent their use, which is a serious regression from a centralized systems management perspective in a networked environment.
I'm not talking about ancient KDE versions. I'm talking about the actual Plasma behaviour. And it is not even Mageia related. On OpenSuse Tumbleweed KDE Plasma 5.23.5 the behaviour is the same as i have already described. The only difference between Plasma 5.23.4 (Mageia Cauldron) and Plasma 5.23.5 (Tumbleweed) is, that they cleared up the "naming mess". That means there is no "Leave" button anmymore. Only "Logout", "Shutdown", "Reboot", "Lock", "Switch User", "Hibernate", "Sleep". But still the leave settings from systemsettings don't have any influence on the task bar applet.
And i described the situation as it is at the moment with an actual Plasma, and not how it should be.
Thank you sturmvogel for your expert explanation. This looks to be an upstream affair. And Stephen for clarifying the complaint. Now, in Plasma, I can look! Immediately enigmatic: > In your taskbar you have there two buttons. One says "lock" and the other one "Leave" Not here! I doubt that I would have removed them. Do you mean the Systray collection on the right? What do they look like? (Selective screenshot to illustrate, perhaps). I added it via panel right-click, Add widgets, Lock/Logout. Curiously, that indicated there were already 2 [invisible] instances... The initial systray icon was strange, but after configuring it to just 'Leave', it became the usual 'power' icon. I dare not [yet] try it while writing, to see the effect you both describe. Going out via the *menu* is quite safe. Each of the 3 immediately visible icons lead to: Sleep-Hibernate-Restart-Shutdown-Logout, all unambiguous and with a delay. The menu item Power/Session-Logout, Restart, Shutdown also show the same choice. Impossible to go wrong accidentally. So it is just this taskbar thingy that is a nuisance. Remove it? @Stephen, what is wrong with users leaving via the menu? Just 2 clicks/keystrokes, plus a delay and the possibility to change the choice or abandon. BTAIM I shall try the taskbar icon now...
Saved! It popped the familiar 'Sleep-Hibernate-Restart-Shutdown-Logout' screen, with (THE ERROR) the 'Shutdown button clearly highlighted. Plus countdown & cancel buttons. > In your taskbar you have two buttons. One says "lock" > and the other one "Leave". So you have added the same widget twice, differently configured to do the [screen]Lock, & Leave, functions, with their individual & appropriate icons & bubble text. Sorry to have been so long to catch you up. Forget the screenshot. Now to look at SystemSettings. Find the spot: Workspace-Startup & Shutdown-Desktop Session General: - Confirm logout (ticked in my case) - Offer shutdown choice (ticked in my case) Default Leave Option ******* - Close the current session (selected in my case) ******* - Restart the computer - Shut the computer down I shall untick 'Offer shutdown choice' and try it again...
Still here! Untick 'Offer shutdown choice' greyed out the following 'Default Leave Option' section (shown above). Clicking the 'leave' taskbar icon then offered a new Sleep-Hibernate-Logout choice, with timeout & cancel. No way to shut down here. For practical reasons, networked or not, the potential problem looks avoidable by configuration. e.g. - Remove taskbar icons, and go via the menu. One click more? - Leave & modify it: Workspace-Startup & Shutdown-Desktop Session-General Untick 'Offer shutdown choice' Is this bug title accurate? : --- When a "logout" icon on taskbar is clicked, the configured default setting is ignored and "shutdown" is the highlighted (but changeable) choice --- (In reply to Stephen Usher from comment #3) > KDE1, KDE2 or KDE3 > I've been building and using KDE since its first > release in the mid-1990s. KDE2 made me leave...
> You: > In your taskbar you have there two buttons. One says "lock" > and the other one "Leave" > Me: > Not here! > I added it... > ...that indicated there were already 2 [invisible] instances I realise that the two icons you are both talking about must be installed by default. So I withdraw this assumption: "you have added the same widget twice, differently configured to do the [screen]Lock, & Leave, functions, with their individual & appropriate icons & bubble text." Still await some response from Stephen. In particular, that: "When the "logout" icon on task bar is clicked upon ... "shutdown" is initiated." becomes: "When a "logout" icon on taskbar is clicked ... "shutdown" is the highlighted choice" ? No dispute about the "default configured setting is ignored", this is clear enough. But from sturmvogel's comments, an UPSTREAM affair, not a Mageia one.
Created attachment 13097 [details] Plasma 5.20.0 at Mageia 8
Created attachment 13098 [details] Plasma 5.23.4 at Mageia Cauldron
I added some screens for additional info and clarification. I added all possible options to the taskbar (green square in both screenshots). By default only two buttons are visible: Plasma 5.20.4 Mga8: "Leave" and "Lock" Plasma 5.23.4 Cauldron and Plasma 5.23.5 Tumbleweed: "Shutdown" and "Lock" On Plasma 5.20.4 (Mga8) it is only possible to add "Leave", "Lock", "Switch User", "Sleep", "Hypernate". There is no "Logout" button at all. The "Leave" button is actualy the shutdown button and always shuts down the computer. The leave setting from the systemsettings dosn't change anything (red square in screenshot). On Plasma 5.23.4 (Mga Cauldron) and Plasma 5.23.5 (Tumbleweed) the naming mess is removed. There is no "Leave" button anymore but three seperate/additional buttons "Lock", "Logout", "Shutdown". All 7 buttons do what they should. But the leave setting from the systemsettings dosn't change anything (red square in screenshot). This setting can't do anything anymore because ther is no "Leave" button. I believe the setting part about the leave options in systemsettings5 (red square in screenshots)is a leftover from ancient KDE versions without any function. It is not even described in the KDE Plasma documentation anymore. It is still on screenshots in the documentation but there is no official description of the function.
Sorry, one mistake. On plasma 5.23.4/5.23.5 the three new buttons are ""Logout", Shutdown" and "Reboot"
Created attachment 13101 [details] Screenshot snippets to do with logout, shutdown, leave Thank you for your nice screenshots. I decided to add some - all in 1! This thing, in good KDE/Plasma tradition, is driving me spare. Each time I try something, it pops surprises. I apologise again for having taken so long to pin down the exact reported problem. Looking at the attached screenshot - Menu, self-explanatory (the only place previously I saw these icons) - Applet settings, only 'Leave' relevant here. 1) Top Desktop Session has only 'Confirm logout' (excuse the Welsh) ticked; note it greys out the next Default Leave Option section. Either from menu or taskbar 'leave' icons, it shows the 3-item leave screen: Sleep|Hibernate|Logout. TASKBAR: its caption is "Logout / Logout, turnoff or restart the computer"; which is a untrue here. When clicked, the 3-menu are all greyed (but selectable) and it says "Shutting down in x seconds". *** What Stephen is reporting *** MENU: Logout shows the short leave screen with Logout highlighted & "Logging out in x seconds"; Restart shows the same menu all greyed, beneath "Restarting in x seconds"; Shutdown shows the same all greyed menu, with "Shutting down in x seconds" 2) Lower Desktop Session has 'Offer shutdown menu' ticked, which opens up the next pane where the 'Default Leave Option' has 'Finish the current session' selected (excuse the Welsh). This enlarges the 'Leave' menu to the five items: Sleep|Hibernate|Restart|Shutdown|Logout. TASKBAR: Same caption "Logout / Logout, turnoff or restart the computer", potentially true here. Clicking it shows the 5-menu with 'Shutdown' highlighted, and "Shutting down in x seconds"; again, changeable. *** What Stephen is reporting *** MENU : The 3 icons Logout|Restart|Shutdown each show the 5-menu with the appropriate action highlighted, supported by "Logout|Restarting|Shutting down in x seconds". ----------------- Understanding it better, I tried the reported problem: the *taskbar* icon always *defaults* to 'shutting down' (& says so), so if you just do nothing - it does! But you *can* change its course. From a user's point of view, what worries Stephen, is that this can be avoided simply by configuring the beast; particularly, to not have the iffy taskbar icons, but use the pucker menu ones.
Since this area is confused, and changing upstream anyway, and the fault is nothing to do with Mageia (thank you sturmvogel), and can be circumvented, I am assigning this to KDE team in case they can backport some Plasma 5.23.x element to Mageia 8; which I doubt. Otherwise to close it. @Stephen : please raise a bug upstream at KDE.org if you wish, but you can see comment 2 that improvement is on the way.
Assignee: bugsquad => kdeKeywords: (none) => UPSTREAM