Isolate nested IPC sockets and define session ownership policy
This commit is contained in:
1 parent
97026a0db7
commit
ce024d4794
42 files changed
+635
-147
No files matched your search
@@ -11,6 +11,11 @@ pub fn resolve(explicit: Option<&Path>) -> io::Result<PathBuf> {
|
||||
)
|
||||
}
|
||||
|
||||
/// The DRM session's listening address, independent of a client's IPC target.
|
||||
pub fn runtime_default() -> io::Result<PathBuf> {
|
||||
resolve_with(None, None, std::env::var_os("XDG_RUNTIME_DIR").as_deref())
|
||||
}
|
||||
|
||||
fn resolve_with(explicit: Option<&Path>, socket: Option<&OsStr>, runtime: Option<&OsStr>) -> io::Result<PathBuf> {
|
||||
if let Some(path) = explicit {
|
||||
if path.as_os_str().is_empty() {
|
||||
|
||||
Reference in new issue
Block a user