i get no input from the following command
Code:
clay@atlantis:~$ ps uax | grep Xorg | grep Xgl
clay@atlantis:~$
and the following command
Code:
clay@atlantis:~$ nonXgl ppracer
xhost: unable to open display ":93"
PPRacer 0.3.1 -- http://racer.planetpenguin.de
(c) 2004-2005 The PPRacer team
(c) 1999-2001 Jasmin F. Patry<jfpatry@sunspirestudios.com>
PPRacer comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.
See http://www.gnu.org/copyleft/gpl.html for details.
*** ppracer error: Couldn't initialize SDL: No I/O port permissions
clay@atlantis:~$
any ideas?
EDIT: problem solved
i simply changed the display in /usr/bin/nonXgl to 0, rather than 93
Code:
#!/bin/sh
DISPLAY=":0"
if [ -z "$1" ]; then
echo "Usage: nonXgl <command>"
exit 1
fi
isdisplay=0; isauth=0; for test in $(ps ax | grep "$DISPLAY" | grep Xorg ); do if [ $isauth -eq 1 ]; then export XAUTHORITY="$test"; isauth=0; fi; if [ "$test" = "-auth" ]; then isauth=1; fi; done;
sudo /usr/bin/Xorgallowlocal "$XAUTHORITY" "$DISPLAY"
exec $@
now i can run gl apps/games with the script. thanks!
Bookmarks