diff options
Diffstat (limited to 'app-emulation/steam/files/kogaion-steam')
-rwxr-xr-x | app-emulation/steam/files/kogaion-steam | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-emulation/steam/files/kogaion-steam b/app-emulation/steam/files/kogaion-steam new file mode 100755 index 00000000..c243c2b2 --- /dev/null +++ b/app-emulation/steam/files/kogaion-steam @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +main () { + export LD_PRELOAD='/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6' + if [[ "$(lsmod|grep nvidia)" ]] ; then + export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib:/usr/lib64/opengl/nvidia/lib' + fi + export DISPLAY=:0 + steam +} +main |