Trying to add 32-bit support for applications like Doom-3 on multilib x86_64 platforms.
This commit is contained in:
parent
f5f24b84f0
commit
798409ddbc
|
@ -15,7 +15,8 @@ FIFO_FILE=/tmp/.snail.fifo
|
||||||
if [ 0 -eq $? ]; then
|
if [ 0 -eq $? ]; then
|
||||||
echo "Running $@ on nVidia"
|
echo "Running $@ on nVidia"
|
||||||
export LD_LIBRARY_PATH=/usr/lib/snail
|
export LD_LIBRARY_PATH=/usr/lib/snail
|
||||||
snail.vglrun -d :8293 "$@"
|
LD_PRELOAD="/usr/lib/snail/lib32/libGL.so /usr/lib/snail/lib32/libnvidia-tls.so" \
|
||||||
|
snail.vglrun -d :8293 "$@" 2>/dev/null
|
||||||
echo "Application $@ was performed on nVidia"
|
echo "Application $@ was performed on nVidia"
|
||||||
|
|
||||||
elif [ 0 -ne $INTEL_IF_FAIL ]; then
|
elif [ 0 -ne $INTEL_IF_FAIL ]; then
|
||||||
|
|
|
@ -8,7 +8,7 @@ PIDFILE=/var/run/snail-xserver.pid
|
||||||
start() {
|
start() {
|
||||||
ebegin "Starting Snail nVidia Optimus"
|
ebegin "Starting Snail nVidia Optimus"
|
||||||
snail.nv_pwr_on || eend -1
|
snail.nv_pwr_on || eend -1
|
||||||
export LD_LIBRARY_PATH=/usr/lib/snail:/usr/lib/snail/lib
|
export LD_LIBRARY_PATH=/usr/lib/snail
|
||||||
pid=`cat $PIDFILE 2>/dev/null`
|
pid=`cat $PIDFILE 2>/dev/null`
|
||||||
rm -f $PIDFILE
|
rm -f $PIDFILE
|
||||||
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
||||||
|
|
|
@ -27,7 +27,7 @@ case "$1" in
|
||||||
start)
|
start)
|
||||||
log_begin_msg "Starting Snail nVidia Optimus"
|
log_begin_msg "Starting Snail nVidia Optimus"
|
||||||
snail.nv_pwr_on || log_end_msg 1
|
snail.nv_pwr_on || log_end_msg 1
|
||||||
export LD_LIBRARY_PATH=/usr/lib/snail:/usr/lib/snail/lib
|
export LD_LIBRARY_PATH=/usr/lib/snail
|
||||||
pid=`cat $PIDFILE 2>/dev/null`
|
pid=`cat $PIDFILE 2>/dev/null`
|
||||||
rm -f $PIDFILE
|
rm -f $PIDFILE
|
||||||
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
[ -z $pid ] || ! pgrep -s $pid X &>/dev/null && \
|
||||||
|
|
Loading…
Reference in New Issue