Isolate nested IPC sockets and define session ownership policy

This commit is contained in:
Samuel Onoja committed 2026-10-07 08:03:30 +01:00
1 parent 97026a0db7
commit ce024d4794
42 files changed
+635 -147

No files matched your search

+3 -1
View File
@@ -221,7 +221,9 @@ async fn session_subject(
connection: &zbus::Connection,
) -> Result<(String, HashMap<String, Value<'static>>), Box<dyn std::error::Error>> {
// Nested previews must not take over authentication for the host desktop.
if std::env::var("FERESE_SESSION_IMPORT_ENV").as_deref() == Ok("0") {
if std::env::var("FERESE_SESSION_MODE").as_deref() == Ok("embedded")
|| std::env::var("FERESE_SESSION_IMPORT_ENV").as_deref() == Ok("0")
{
return process_subject().map_err(Into::into);
}
let manager = zbus::Proxy::new(