Right click to open .exe files for two prefixes, x32 and x64

Questions about Wine on Linux
Locked
firekage
Level 2
Level 2
Posts: 16
Joined: Fri Jan 23, 2015 8:20 am

Right click to open .exe files for two prefixes, x32 and x64

Post by firekage »

Hi.

I would like to ask for one thing. I followed:
https://wiki.archlinux.org/index.php/wine

I created according to archlinux wine page:

Code: Select all

$ WINEARCH=win32 WINEPREFIX=~/win32 winecfg
$ WINEPREFIX=~/win64 winecfg
I have two wine prefixes, one named win32 and the second named win64. On win32 i have installed steam and giana sisters twisted dreams (giana sisters twisted dreams needs, in order to run, wmp10 which is not for x64 and can't be installed under x64) and on the win64 i have only WarThunder. Both games works.

My question is about ability to launch from right-click in kde .exe files for these two prefixes. Default wine installation on x64 desktop Arch is wine for 64 bit. It's being created under ~/.wine. If i right click to exe, it's being run and configured not for my prefixes named ~/win32 or even ~/win64 but for ~/.wine. Default kde settings for right click of .exe programs is being launched by wine windows program loader (x64) with this command:

Code: Select all

wine start /unix %f
This command, when right-click or left-click cause .exe to being installed and run under native wine, in my case it is 64 bit for 64 bit system, and it is created, as i said, under ~/.wine.

Could somebody tell my what to do in order to have, when selecting right-click, ability to launch it on ~/win32 in wine 32 bit and ~/win64 for wine 64 bit? What command use? In KDE there is possible to add new programs that will be launched to launch for an example .exe with add, but question is: what to add, what to do in order to have ability of selecting these two prefixes instead run programs in default env (64 bit) under ~/.wine.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Right click to open .exe files for two prefixes, x32 and

Post by dimesio »

To install to a wineprefix other than the default, you need to use the command line and specify the wineprefix. Any menu entries/desktop links created by winemenubuilder should point to the correct wineprefix. http://wiki.winehq.org/FAQ#wineprefix
Locked