Make a new directory where you want to save your script. I keep my scripts in a directory called /home/chris/scripts
:
$ mkdir /home/chris/scripts
Move to the script directory
$ cd /home/chris/scripts
Create a new file named wow.sh
using gedit or your favorite text editor:
$ gedit wow.sh
Add the following to your script:
#!/bin/bash
cd /..path/
__GL_THREADED_OPTIMIZATIONS=1 WINEDEBUG=-all wine wow.exe -opengl
Save and close the script.
Make the script executable:
$ chmod +x wow.sh
Ok. Now you've got a script to start WOW in WINE, now you need a desktop launcher which calls the script.
Make a new file which will become your desktop launcher. Use gedit again or your favorite text editor. We'll put this file directly on the desktop.
$ gedit /home/chris/Desktop/wow.desktop
Add this to the file:
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_CA]=gnome-panel-launcher
Exec=/home/chris/scripts/wow.sh
Name[en_CA]=World of Warcraft
Name=World of Warcraft
Icon=gnome-panel-launcher
Save and close the launcher file.
Make the launcher executable:
$ chmod +x /home/chris/Desktop/wow.desktop
Double click the launcher and have fun!
__GL_THREADED_OPTIMIZATIONS=1 WINEDEBUG=-all wine /..path/wow.exe -opengl
instead of doingcd /..path/
and then__GL_THREADED_OPTIMIZATIONS=1 WINEDEBUG=-all wine wow.exe -opengl
. That single command can be put into a desktop launcher as explained in the link from @mikewhatever. :)