User:Evilgold/wine

From FreekiWiki
< User:Evilgold
Revision as of 18:56, 27 December 2010 by Evilgold (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

run wine in a seperate X session (NEAT-O!)

#!/bin/sh
# Launches a new X session on display 3. If you don't have an Nvidia card
# take out the "& nvidia-settings --load-config-only" part
X :3 -ac & nvidia-settings --load-config-only
# Goto game dir (modify as needed)
cd "~/.wine/drive_c/windows/"
# Forces the system to have a break for 2 seconds, X doesn't launch instantly
sleep 2
# Launches wine
DISPLAY=:3 WINEDEBUG=-all wine "C:/windows/explorer.exe"

This can be used from a console after login. It wont work if you launch it inside of X unless you kill gdm (or whatever dm) first.