Window Mode for an Application - not the Prefix

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
meyer
Level 3
Level 3
Posts: 50
Joined: Sat Jul 15, 2017 2:38 am

Window Mode for an Application - not the Prefix

Post by meyer »

Hi,

i know i can run all installed windows application with a virtual desktop using winecfg. I have installed a lot of old games and the most of them don't have there own wine prefix. They are working really good installed in the same prefix. But they are running with different resolutions. Can i run only the specific application windowed? Or can i enable the virtual desktop using a single shell command? So i could write a little script that first enabled the virtual desktop and then starts the game.

meyer
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: Window Mode for an Application - not the Prefix

Post by jkfloris »

You can use winecfg to set the virtual desktop for each application.
winecfg → "Applictions" tab → "Add application..." → Select the program executable.
With the program selected choose the "Graphics" tab → Select and set "Emulate a virtual desktop" → Apply
Repeat for every application.

Or if you want to write a script you can use winetricks

Code: Select all

# Set the Virtual Desktop to 1024x768:
winetricks vd=1024x768
# Run program:
wine program.exe
# Disable the Virtual Desktop
winetricks vd=off
Locked