Difference between revisions of "User:Evilgold/wine"

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

Latest revision as of 18:56, 27 December 2010

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.