Add a COSMIC_DISABLE_SYNCOBJ env var to disable syncobj protocol
If any issues with the syncobj protocol come up, or any issues we suspect may be related to it, an env var may be helpful.
This commit is contained in:
parent
9dddead15d
commit
6c7ec54bdb
1 changed files with 15 additions and 13 deletions
|
|
@ -156,6 +156,7 @@ pub fn init_backend(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !crate::utils::env::bool_var("COSMIC_DISABLE_SYNCOBJ").unwrap_or(false) {
|
||||||
let kms = match &mut state.backend {
|
let kms = match &mut state.backend {
|
||||||
BackendData::Kms(kms) => kms,
|
BackendData::Kms(kms) => kms,
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
|
|
@ -172,6 +173,7 @@ pub fn init_backend(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue