diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-07 00:31:13 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-07 00:31:13 +0000 |
commit | 6e76818b36c241ec194e661feff6b9ff76c7b24b (patch) | |
tree | 413f67b0d54427f75d00ed2359176a40e2251d36 /app-emulation/steam-native-runtime/files/redcore-steam-native | |
parent | 978c210b9e6d03aa154c99eded6e30b823e395ff (diff) |
app-emulation/steam-native-runtime : new package
Diffstat (limited to 'app-emulation/steam-native-runtime/files/redcore-steam-native')
-rwxr-xr-x | app-emulation/steam-native-runtime/files/redcore-steam-native | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app-emulation/steam-native-runtime/files/redcore-steam-native b/app-emulation/steam-native-runtime/files/redcore-steam-native new file mode 100755 index 00000000..677761b7 --- /dev/null +++ b/app-emulation/steam-native-runtime/files/redcore-steam-native @@ -0,0 +1,37 @@ +#!/usr/bin/env bash + +# steam-runtime is a somewhat a mess bundled with old libraries +# due to this reason, system native graphic drivers may not load +# +# if we remove some bundled libs and preload some system libs +# system native graphic drivers will be able to load +# +# however we must do this everytime when we launch steam, because +# steam-runtime is being fixed right away by steam client + + +source /lib/gentoo/functions.sh + +do_remove () { + einfo "Removing bundled libraries (libxcb, libstdc++, libgcc_s)" + find /home/$USER/.local/share/Steam -name 'libxcb*' -type f | grep -v installed | xargs rm -rf + find /home/$USER/.local/share/Steam -name 'libstdc++.so.6*' -type f | grep -v installed | xargs rm -rf + find /home/$USER/.local/share/Steam -name 'libgcc_s*' -type f | grep -v installed | xargs rm -rf +} + +do_preload () { + einfo "Preloading system libraries (libstdc++, libgcc_s)" + export LD_PRELOAD='/usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/32/libstdc++.so.6 /usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/32/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/8.2.0/32/libstdc++.so.6' +} + +launch_steam () { + do_remove + do_preload + export DISPLAY=:0 + export STEAM_RUNTIME=0 + export STEAM_RUNTIME_HEAVY=0 + export DBUS_FATAL_WARNINGS=0 + steam +} + +launch_steam |