summaryrefslogtreecommitdiff
path: root/app-emulation/steam/files/kogaion-steam
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-04-10 13:10:20 +0100
committerV3n3RiX <venerix@rogentos.ro>2016-04-10 13:10:20 +0100
commitbda1c1728997079cb257d9b00b2be47735e636b7 (patch)
tree00692fce412e9e2a4ac5ad52c0908aac94ae5ba2 /app-emulation/steam/files/kogaion-steam
parentdbcad6e486ed17c022b44e57841cc9de3baeae91 (diff)
make steam run as if it's running in ubuntu
Diffstat (limited to 'app-emulation/steam/files/kogaion-steam')
-rwxr-xr-xapp-emulation/steam/files/kogaion-steam11
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