Fix bwrap crash for non-Steam shortcuts#488
Conversation
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.
|
Thanks for the fix, I've merged it to master. Tested this and this behavior checks out when the "Start In" field in the app properties is cleared. Steam itself provides the working directory in the D-Bus call that launches the game (output from If an empty path is used the launcher defaults to the Steam directory: Likewise, if a relative path such as So, if we wanted to replicate Steam's behavior we should also set the working directory to the Steam installation directory when On a different note: Steam itself populates both "Target" and "Start In" fields correctly when adding external executables. If there are non-Steam shortcuts which are missing the start directory, maybe a third-party utility is to blame? |
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
--filesystemargument that newer pressure-vessel versions reject with:Skip empty or non-absolute paths when building mount parameters.