From c20733d19eb6c65188405b4f465dfeef8e1ba2ba Mon Sep 17 00:00:00 2001 From: BIT Date: Thu, 2 Jul 2026 13:30:31 +0300 Subject: [PATCH] Fix bwrap crash for non-Steam shortcuts Non-Steam shortcuts don't have an install directory, so $STEAM_APP_PATH is empty. bwrap_launcher.sh includes that empty value in the mount list, producing an invalid --filesystem argument that newer pressure-vessel versions reject with: E: --filesystem argument must be an absolute path, not "." Skip empty or non-absolute paths when building mount parameters. --- src/protontricks/data/scripts/bwrap_launcher.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/protontricks/data/scripts/bwrap_launcher.sh b/src/protontricks/data/scripts/bwrap_launcher.sh index d8f75a7..2b89354 100644 --- a/src/protontricks/data/scripts/bwrap_launcher.sh +++ b/src/protontricks/data/scripts/bwrap_launcher.sh @@ -55,6 +55,13 @@ done # Add additional mount directories, including the Wine prefix and Proton # installation directory for dir in "${ADDITIONAL_MOUNT_DIRS[@]}"; do + # Skip empty or relative paths. Non-Steam shortcuts don't have an + # install directory, which leaves STEAM_APP_PATH empty. Passing an + # empty --filesystem argument causes pressure-vessel to reject it. + if [[ -z "$dir" || "$dir" != /* ]]; then + continue + fi + if [[ ! -d "$dir" ]]; then continue fi