-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: depend on ldconfig when finding shared library path prefixes (#180)
* umu_run: delete set_steamrt_paths * fix: use get_library_paths to find library paths - The previous implementation of finding the shared library paths assumed every path containing the libc.so.6 was a valid path prefix. However, it's not that simple as it would be wrong for container environments such as Flatpak where an LD_LIBRARY_PATH is not set and shared library paths appear in multiple places, resulting in the incorrect environment variable for STEAM_RUNTIME_LIBRARY_PATH: STEAM_RUNTIME_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/app/lib/i386-linux-gnu:/home/foo/Games/Flowers - Le Volume Sur Automne Where it really should be *all* the paths that appear in the dynamic linker's search path: STEAM_RUNTIME_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:/app/lib/i386-linux-gnu:/app/lib32:/app/lib/i386-linux-gnu/GL/default/lib:/lib64:/app/lib:/usr/lib/x86_64-linux-gnu/GL/default/lib:/usr/lib/x86_64-linux-gnu/openh264/extra:/usr/lib/i386-linux-gnu:/home/foo/Games/Flowers - Le Volume Sur Automne - Note, this problem hasn't been reported yet and it's not clear how it would effect games by having some paths missing yet. Nonetheless, the value was incorrect when matching against Steam's (Flatpak) STEAM_RUNTIME_LIBRARY_PATH value. As a result, minus the appended Scout runtime paths, the value for that environment variable will now be logically equivalent to Steam's as we are using the paths prefixes returned from ldconfig then resolving those real paths. * umu_run: remove missing libc check - libc.so is fundamental and users are going to run into problems if it couldn't be found by Python from the host or container environment. Those users will need to configure their environment accordingly within the container framework's expectations. In the next lines, umu-launcher will attempt to find the paths using ldconfig instead of exiting early if libc.so couldn't be found * umu_test: remove set_steamrt_paths test * umu_test: update tests * umu_util: resolve the path
- Loading branch information
Showing
3 changed files
with
45 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters