Bug 480280 - Power management actions shown even when they don't fit the use case of remote login
Summary: Power management actions shown even when they don't fit the use case of remot...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 5.27.5
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2024-01-24 17:04 UTC by Sebastian Mogl
Modified: 2024-04-25 18:59 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Mogl 2024-01-24 17:04:53 UTC
Currently, all the Menus that allow one to leave KDE (logout, lock screen, poweroff, …) always assume a local session, even when running as a remote session under x2go, xrdp, etc.

However, when running remote the actions available don't fit the use case and should be in most cases limited to logging out and suspending the session. (Most are useless when regular users don't even have the permissions for things like power controls)

The lock screen could be argued over, I'm in favor of suspending the session and completely closing the connection in order to lock it.

The Mate Desktop solved this problem by using librda to detect how the desktop was started, which actions are available and calling the appropriate handlers.

librda: https://github.com/ArcticaProject/librda
Corresponding blog post: https://sunweavers.net/blog/node/82

Context: Librda detects remote sessions based on Environment variables and the logout/suspend functions call the appropriate commands.

This is a resubmitted version of Bug 479403 addressing its root cause.