Enable virtual dexktop and resolution from cmd line?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
beardedlinuxgeek
Newbie
Newbie
Posts: 2
Joined: Wed Apr 18, 2012 8:48 am

Enable virtual dexktop and resolution from cmd line?

Post by beardedlinuxgeek »

I have a program called game.exe

When I do

Code: Select all

wine game.exe
it works fine. But it only runs in full screen and locks the mouse so you can't alt tab out.

If I use winecfg to enable the virtual desktop and set a resolution smaller than my desktop resolution, then when I run the game it works fine. It is at the right resolution, in a window, I can alt-tab out, ect. No problems.

However, this means I have to fiddle with winecfg everytime I want to play this game. Surely there are launch options that allow me to enable the virtual desktop at my prefered resolution.

I tried

Code: Select all

wine explorer /desktop=1600x900 game.exe
and I just got a fullscreen black window.

My question is essentially, How do I change winecfg settings from the command line?

System specs:

Code: Select all

uname -a
Linux saturn 3.11.1-1-ARCH #1 SMP PREEMPT Sat Sep 14 19:30:21 CEST 2013 x86_64 GNU/Linux

wine --version
wine-1.7.2
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Enable virtual dexktop and resolution from cmd line?

Post by dimesio »

beardedlinuxgeek wrote: I tried

Code: Select all

wine explorer /desktop=1600x900 game.exe
and I just got a fullscreen black window.
http://wiki.winehq.org/explorer
Locked