[Wine] Re: Run Game In Separate X Server?
Cloudef
wineforum-user at winehq.org
Thu Jul 21 18:03:20 CDT 2011
I assume you use nvidia, it opens it in :2
change :2 to something else if you want it somewhere else,
or heck make it even a command line option
Code:
#!/bin/sh
# cd to dir && run in wine in another X Display
if [ ! "$1" ]; then
echo "Usage : xwine [gameDir] [exe]"
exit
fi
if [ ! "$2" ]; then
echo "Usage : xwine [gameDir] [exe]"
exit
fi
X :2 -ac -terminate & nvidia-settings --load-config-only
sleep 10
DISPLAY=:2
cd "$1"
wine "$2" $3
1. create new file, name it xwine
2. copy that to that file
3. chmod +x
4. sudo mv xwine /usr/bin/
5. xwine "/path/to/game/dir" "executable"
Not tested, but should work.
More information about the wine-users
mailing list