From 27b92bba1c9bdb1d743ecf03e2ded84facbe3514 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 18 May 2026 17:21:38 +0200 Subject: [PATCH] Skip pressure vessel var if home is in /var --- server/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/main.cpp b/server/main.cpp index 55c5b680..dfa3e44a 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -161,12 +161,16 @@ static std::string steam_command() if (not pressure_vessel_openxr_support()) command = "PRESSURE_VESSEL_IMPORT_OPENXR_1_RUNTIMES=1"; + std::string_view home{"\0", 1}; + if (auto h = std::getenv("HOME")) + home = h; + if (auto p = active_runtime::openvr_compat_path().string(); not p.empty()) { // /usr cannot be shared in pressure vessel container if (p.starts_with("/usr")) append_delim(command, " VR_OVERRIDE=/run/host" + p, ' '); - else if (p.starts_with("/var")) + else if (p.starts_with("/var") and not p.starts_with(home)) append_delim(command, "PRESSURE_VESSEL_FILESYSTEMS_RW=" + find_dir(p, "io.github.wivrn.wivrn").string(), ' '); }