[Wine] wine louses up display

Doug dmcgarrett at optonline.net
Tue Sep 4 20:00:38 CDT 2012


On 09/04/2012 05:13 PM, Martin Gregorie wrote:
> On Tue, 2012-09-04 at 16:34 -0400, Doug wrote:
>> Running PCLOS, KDE desktop, everything latest version.
>> Under certain conditions--one I can 100% repeat is Wine (Microsoft)
>> Pinball--when I shut it down, by any means (escape key is straight-forward)
>> the desktop will come back up with the widgets scattered all over the
>> place, most of them moved towards the top left of the display.
>> This happens in spite of the fact that the widgets were locked beforehand.
>> I have been advised that wine (or at least Pinball) changes the screen
>> resolution, which is what louses up the display when the KDE desktop
>> comes back.
>>
>> Looking for a solution that will automatically restore the screen to
>> what it was before activating Wine Pinball.
>> (I found a similar situation with DOSBox. Would like a solution for that
>> also.)
>>
> Run the Wine app from a small (5 line) shell script:
>
>
> #!/bin/bash
> export WINEPREFIX=$HOME/.wine_prefix_name
> cd $WINEPREFIX/path_to/app?install_dir
> wine appname
> xrandr  --size "1280x800"
>
>
> This assumes that 1280x800 is your normal screen size - use
> "xrandr --current" to check that. You can point a launcher at the script
> if you want to run it by clicking an icon.
>
> This approach should work for DosBox as well, though I've never seen any
> problems like you describe from running it.
>
> Martin
>   
Thank you for the input.  I have to ask a couple of questions, being 
somewhat dense.
The expression above, ".wine_prefix_name" refers to what? Is this the 
name of the
script? I assume it is, and that as a result, instead of having an icon 
(widget) on the
desktop called Pinball, I would have an icon for a file called, perhaps, 
"Run_Pinball" ,
and at this point in the script, rather than writing .wine_prefix_name I 
would write
Run_Pinball. Is this correct?
Under xrandr, I would put 1920x1080, I assume, since that is the normal 
resolution
of my display. Is that correct?

(I checked a couple of other programs that run under Wine, and do not 
have the problem
that Pinball creates. They don't run full screen, as does Pinball. 
DOSBox also runs full screen,
and that's probably why I see the problem there. I don't remember, but 
maybe when I
set up DOSBox I selected to make it full screen, if it hadn't been.)

Perhaps I'm getting there. . . .

--doug



More information about the wine-users mailing list