Users aren't notified that other users are logged in when requesting a system shutdown in Xfce
Description of problem
When multiple users are logged into a session, a user can request a system shutdown in Xfce and the user requesting the shutdown is not notified that other users are logged in. The system just shuts down immediately.
Version-Release number
xfce4 4.14.4 (Fedora 33)
How reproducible
It is reliably reproducible.
Steps to Reproduce
- Have a user create a new login session by authenticating at the login screen (lightdm, in my case). I used Xfce for the session, but it probably doesn't matter what desktop environment is used for the first login session.
- Have that user click on the upper right hand corner (on their username) and select "Switch user" (Fedora 33 setup).
- Have a second user create a new Xfce session by authenticating at the login screen (lightdm, in my case).
- Have the second user click in the upper right hand corner (on their username) and select "Shut Down" (Fedora 33 setup).
Actual results
The system immediately shuts down as requested without letting the second user know that there are other users logged into the system.
Expected results
I would expect Xfce to popup a dialog box notifying the user that other users are logged in and prompt the second user if they really want to shut down the computer. If they don't want to shut down the computer, there would be a "Cancel" button letting them abort the request. There would also be a "Shut Down" button (or something similar) to allow the user to continue with their request.
Additional info
This is a common feature in several OSes and with several different desktop environments, reducing the surprise that other user's information is potentially lost/corrupted when someone shuts down not knowing that others were logged in.
Note that this can also be reproduced by doing steps #1 (closed)-#3 (closed) above and then using the "Applications" menu in the panel (Fedora 33), selecting "Log out", and then selecting "Shut Down". This suggests that the issue is fundamental to the Xfce shut down function rather than just the "Action" button panel plugin that requests the shut down, as illustrated above.
Further, this is likely not specific to the Fedora build of Xfce (I contacted Fedora first) and is likely in previous Xfce releases as well.