From 5c40d8b035e39597ac7fa2b5343059a1013a9aec Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 21 Oct 2025 13:33:05 -0700 Subject: [PATCH] Remove `COSMIC_ENABLE_WAYLAND_SECURITY` env var Do not attempt to secure protocols from non-sandboxed clients. --- src/state.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/state.rs b/src/state.rs index a30b373a..d4501bc8 100644 --- a/src/state.rs +++ b/src/state.rs @@ -581,10 +581,6 @@ pub fn client_is_privileged(client: &Client) -> bool { .is_some_and(|client_state| client_state.privileged) } -fn enable_wayland_security() -> bool { - crate::utils::env::bool_var("COSMIC_ENABLE_WAYLAND_SECURITY").unwrap_or(false) -} - impl State { pub fn new( dh: &DisplayHandle, @@ -766,7 +762,7 @@ impl State { BackendData::Kms(kms_state) => *kms_state.primary_node.read().unwrap(), _ => None, }, - privileged: !enable_wayland_security(), + privileged: true, evls: self.common.event_loop_signal.clone(), security_context: None, }