Skip to content

Commit 5c40d8b

Browse files
ids1024Drakulix
authored andcommitted
Remove COSMIC_ENABLE_WAYLAND_SECURITY env var
Do not attempt to secure protocols from non-sandboxed clients.
1 parent b25b304 commit 5c40d8b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/state.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,10 +581,6 @@ pub fn client_is_privileged(client: &Client) -> bool {
581581
.is_some_and(|client_state| client_state.privileged)
582582
}
583583

584-
fn enable_wayland_security() -> bool {
585-
crate::utils::env::bool_var("COSMIC_ENABLE_WAYLAND_SECURITY").unwrap_or(false)
586-
}
587-
588584
impl State {
589585
pub fn new(
590586
dh: &DisplayHandle,
@@ -766,7 +762,7 @@ impl State {
766762
BackendData::Kms(kms_state) => *kms_state.primary_node.read().unwrap(),
767763
_ => None,
768764
},
769-
privileged: !enable_wayland_security(),
765+
privileged: true,
770766
evls: self.common.event_loop_signal.clone(),
771767
security_context: None,
772768
}

0 commit comments

Comments
 (0)