chore: add TODO for optional keep-awake inhibition

Signed-off-by: Steve3184 <77789906+Steve3184@users.noreply.github.com>
This commit is contained in:
Steve3184 2026-03-01 22:01:38 +08:00
parent c998f96c31
commit a629f5d95a

View file

@ -1034,6 +1034,8 @@ pub fn get_capturables() -> Result<Vec<PipeWireCapturable>, Box<dyn Error>> {
if rdp_connection.is_none() {
let (conn, fd, streams, session, is_support_restore_token) = request_remote_desktop(false)?;
let conn = Arc::new(conn);
// to-do: Add an option like "Keep awake while RustDesk is running" to avoid
// impacting users whose sessions are not automatically terminated upon entering the Dim Screen.
let inhibit_path = if !is_server_running() { request_inhibit(&conn) } else { None };
let rdp_info = RdpSessionInfo {