Run more than one application in wine simultaneously

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
colinw
Newbie
Newbie
Posts: 4
Joined: Sat Oct 29, 2011 2:01 pm

Run more than one application in wine simultaneously

Post by colinw »

Is it possible? If so, can you explain to a newbie (me) precisely how it is done?

Don't take any shortcuts with your explanations, please: I'm a bona fida idiot
John Drescher

Run more than one application in wine simultaneously

Post by John Drescher »

Is it possible?  If so, can you explain to a newbie (me) precisely how it is done?
The same way it is done in windows.

John
colinw
Newbie
Newbie
Posts: 4
Joined: Sat Oct 29, 2011 2:01 pm

Post by colinw »

...not quite, it seems.

When I double-click a wine app it opens in a virtual desktop window. When I then run another wine app it opens in *the same window*.

How do I make it open in a different window?
Martin Gregorie

Run more than one application in wine simultaneously

Post by Martin Gregorie »

On Sat, 2011-10-29 at 14:22 -0500, colinw wrote:
...not quite, it seems.

When I double-click a wine app it opens in a virtual desktop window. When I then run another wine app it opens in *the same window*.

How do I make it open in a different window?
Install the apps in separate prefixes.


Martin
colinw
Newbie
Newbie
Posts: 4
Joined: Sat Oct 29, 2011 2:01 pm

Post by colinw »

Install the apps in separate prefixes.
How do I do that, Martin? I'm new to this so a little wet behind the ears...
David Hagood

Run more than one application in wine simultaneously

Post by David Hagood »

This and your later messages indicate you have wine configured to
emulate a virtual desktop, and perhaps you don't need that. Try running
winecfg, and under the Graphics tab uncheck the "Emulate a virtual
desktop" option. Then your Windows programs will run on your normal X
session, and will look just like other apps.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

colinw wrote:
Install the apps in separate prefixes.
How do I do that, Martin?
If you need separate wineprefixes read this:
http://wiki.winehq.org/FAQ#head-f2f5f3b ... 15657ad552

You can launch multiple programs from the same wineprefix but different virtual desktops. However this is not recommended.
Martin Gregorie

Run more than one application in wine simultaneously

Post by Martin Gregorie »

On Sat, 2011-10-29 at 15:15 -0500, colinw wrote:
Install the apps in separate prefixes.
How do I do that, Martin? I'm new to this so a little wet behind the ears...
Run the command:

export WINEPREFIX=$HOME/myprefix

before installing and/or running an application. This creates a prefix
in your login directory called 'myprefix' instead of using the default,
which is $HOME/.wine

FWIW I tend to use a small script. Using your favourite text editor,
create a file containing this four line script, which is called
bin/runmyprog in this example:

================ bin/runmyprog starts after this line ================
#!/bin bash
export WINEPREFIX=$HOME/.myprefix
cd $WINEPREFIX/path/to/directory/containing/the/exe
wine myprogram.EXE
================ bin/runmyprog ends before this line ================

where bin is a directory in your login directory. The script doesn't
have to go there, but by creating a bin directory and adding it to your
search path you've kept things tidy and now have a place to put other,
similar, scripts. Use the commands:

cd
mkdir bin

to create 'bin' directory. Edit .bash_profile to add it to your search
path by finding these lines:

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

and adding a line after them that looks like this:

PATH=$HOME/bin:$PATH

You'll need to log out and log in again to activate this change. Now
back to the script. Make it executable:

chmod u+x bin/runmyprog

and now you can launch your Wine app by typing the command
"runmyprog" and hitting RETURN. You can also use it by clicking an icon.
To do this you create a launcher as usual (with Gnome 2 by clicking the
desktop, with Gnome 3 by running the "Main Menu" applet - other desk
tops have other methods) but make it run the script rather than running
Wine directly.


Martin
colinw
Newbie
Newbie
Posts: 4
Joined: Sat Oct 29, 2011 2:01 pm

Post by colinw »

Thanks for the help, folks.

I found that the link supplied by vitamin worked.

Cheers again,

Colin
Locked