Results 1 to 4 of 4

Thread: How to make a WINE launcher?

  1. #1
    Join Date
    Jul 2012
    Beans
    5

    Question How to make a WINE launcher?

    Hello!

    I was wondering... I have a game called Stronghold installed on my Windows side of my computer.

    I was wondering if there was a way I could create a launcher on my desktop, that would trigger Stronghold to launch through Wine... at least until I can borrow the install disk from my friend.

    Is this possible?

    Thanks!

  2. #2
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to make a WINE launcher?

    This thread should help.

  3. #3
    Join Date
    Jul 2012
    Beans
    5

    Question Re: How to make a WINE launcher?

    Quote Originally Posted by cortman View Post
    This thread should help.
    Am I supposed to replace "Foobar" with the application name and .exe file?

  4. #4
    Join Date
    May 2010
    Location
    Where God goes to rest:AL
    Beans
    574
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: How to make a WINE launcher?

    Your "install" creates a few issues:
    • The original, being on a NTFS drive, will run HORRIBLE. Best if you copy the game files from the Windows side to a folder on the Linux side
    • Does your game even work under wine? Check the winedb to be sure.


    Example: Copy the Stronghold files to your home folder in a folder you name "stronghold"
    Create a wineprefix for your stronghold install:
    Code:
    env WINEPREFIX=/home/<USERNAME>/wine-stronghold winecfg
    The above creates a "bottle" of a default wine install in the folder "wine-stronghold" in your home directory.

    While the winecfg gui is up, check that the correct OS version (WinXP, Win7, whatever) is selected. While there, I always (but this part is up to you) remove the "drive" that points to "/". I don't want ANY Windows program having "accidental" access to my entire HDD

    Go ahead and close winecfg. Go to your home folder, right click on the "Stronghold" folder you copied the Windows files to, and select "Make Link". Copy this link to wine-stronghold/drive_c/Program Files (Or Program Files (x64) or wherever you want to run it from, and rename it to "Stronghold" (This makes it easier to add files or whatever to the actual "Stronghold" folder without having to drill through the wine folder. Also, if Stronghold on the Windows side ever changes, it's VERY easy to recopy to your Stronghold folder in your Home directory.)

    Let us say you want to launch "Start.exe" from within this folder. Open a terminal, and type the following:

    Code:
    env WINEPREFIX=/home/<USERNAME>/wine-stronghold wine "C:\Program Files\Stronghold\Start.exe"
    The above will launch the file "Start.exe" in wine.
    Note the CAPITALIZATION. There IS a difference between "start.exe" and "Start.exe"

    If this launches the program correctly, then you can edit a launcher to run this same command in the "Command" slot.

    Of course, this assumes that Stronghold doesn't need any additional tweaks. If you need to run winetricks to install vbrun, for example, use:
    Code:
    env WINEPREFIX=/home/<USERNAME>/wine-stronghold winetricks
    This will allow winetricks to run in your wine-stronghold install, instead of the default .wine folder
    Last edited by cwwilson721; September 12th, 2012 at 01:23 AM. Reason: Spelling
    Running wine/WoW on a AMD Athlon 64 X2 5200+(2.6GHz)w/4GB DDRII(667) and a NV9600GSO w/768MB DDRIII.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •