Configuration file/registry entry for wine desktop?

Questions about Wine on Linux
Locked
yetoo
Level 1
Level 1
Posts: 7
Joined: Thu Jan 25, 2018 3:56 pm

Configuration file/registry entry for wine desktop?

Post by yetoo »

I once set wine to start in desktop mode. I forget if I tried installing a library or not but at some point (at last in a possibility) the library for the GUI got messed up so almost every window that opens is either a giant square rectangle or a blue gradient. When I try to open winecfg to fix it, it opens as a giant gray rectangle and doesn't do anything as does anything else in desktop mode. I was thinking that this would stop if I got out of desktop mode in the possibility that I didn't install anything but I don't know what or where a configuration file and/or registry entry which contains the desktop mode setting is and/or is located. I don't know what library to use with WINEDLLOVERRIDES and what settings to go along with it. I forget the wine version that I had installed when this started, but this still persists with wine-3.5.
Attachments
This screenshot shows an instance of winecfg opened in desktop mode as a large gray rectangle.
This screenshot shows an instance of winecfg opened in desktop mode as a large gray rectangle.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Configuration file/registry entry for wine desktop?

Post by DarkShadow44 »

It's in user.reg, in your WINEPREFIX:

When "emulate a virtual desktop" is set, for me there's an entry like this:

Code: Select all

[Software\\Wine\\Explorer] 1524396381
#time=1d3da2cbd71257a
"Desktop"="Default"
Remove that, and you exit "emulate a virtual desktop" mode.

Also, there's an entry

Code: Select all

[Software\\Wine\\DllOverrides] 
for overrides, maybe you can remove what library caused the issue there.
yetoo
Level 1
Level 1
Posts: 7
Joined: Thu Jan 25, 2018 3:56 pm

Re: Configuration file/registry entry for wine desktop?

Post by yetoo »

I'm not the most well versed in the registry for wine, but am I supposed to throw the D switch on that or export it and edit it from there? Software\Wine\Explorer is not found for me, what HKEY root am I supposed to prefix this with? I've tried searching all the .reg files in the .wine directory for that path and that number and nothing comes up.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Configuration file/registry entry for wine desktop?

Post by DarkShadow44 »

yetoo wrote:I'm not the most well versed in the registry for wine, but am I supposed to throw the D switch on that or export it and edit it from there? Software\Wine\Explorer is not found for me, what HKEY root am I supposed to prefix this with? I've tried searching all the .reg files in the .wine directory for that path and that number and nothing comes up.
As I said, that can be found in user.reg
yetoo
Level 1
Level 1
Posts: 7
Joined: Thu Jan 25, 2018 3:56 pm

Re: Configuration file/registry entry for wine desktop?

Post by yetoo »

DarkShadow44 wrote:
yetoo wrote:I'm not the most well versed in the registry for wine, but am I supposed to throw the D switch on that or export it and edit it from there? Software\Wine\Explorer is not found for me, what HKEY root am I supposed to prefix this with? I've tried searching all the .reg files in the .wine directory for that path and that number and nothing comes up.
As I said, that can be found in user.reg
I searched 1524396381 in user.reg as well as that path and nothing shows up. Should I add that registry entry and edit from there?
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Configuration file/registry entry for wine desktop?

Post by DarkShadow44 »

Well, easiest would be to throw everything away and make fresh WINEPREFIX.
Does "wine regedit" work? You can also edit it there.
yetoo
Level 1
Level 1
Posts: 7
Joined: Thu Jan 25, 2018 3:56 pm

Re: Configuration file/registry entry for wine desktop?

Post by yetoo »

wine regedit only works command line for me because the graphical version is another grey block.

EDIT: But importing via command line hasn't been implemented yet so do I need to manually edit user.reg?
spoon0042
Level 6
Level 6
Posts: 570
Joined: Thu Dec 24, 2009 11:00 am

Re: Configuration file/registry entry for wine desktop?

Post by spoon0042 »

yetoo wrote:wine regedit only works command line for me because the graphical version is another grey block.

EDIT: But importing via command line hasn't been implemented yet so do I need to manually edit user.reg?
I'm pretty sure that kind of thing has been done in recent years:

Code: Select all

$ /opt/wine-staging/bin/regedit /?
000b:fixme:winediag:start_process Wine Staging 3.6 is a testing version containing experimental patches.
000b:fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org.
Usage:
  regedit [options] [filename] [reg_key]

Options:
  [no option]    Launch the graphical version of this program.
  /L:system.dat  The location of the system.dat file to be modified.
                 Compatible with any other switch. Ignored.
  /R:user.dat    The location of the user.dat file to be modified.
                 Compatible with any other switch. Ignored.
  /C             Import the contents of a registry file.
  /D             Delete a specified registry key.
  /E             Export the contents of a specified registry key to a file.
                 If no key is specified, the entire registry is exported.
  /S             Silent mode. No messages will be displayed.
  /V             Launch the GUI in advanced mode. Ignored.
  /?             Display this information and exit.
  [filename]     The location of the file containing registry information to
                 be imported. When used with [/E], this option specifies the
                 file location where registry information will be exported.
  [reg_key]      The registry key to be modified.

Usage examples:
  regedit "import.reg"
  regedit /E "export.reg" "HKEY_CURRENT_USER\Console"
  regedit /D "HKEY_LOCAL_MACHINE\Key\Path"
And I think you're not finding 1524396381 because it's a timestamp. :)

(Still may be easiest to just start over unless you have a good reason not to.)
yetoo
Level 1
Level 1
Posts: 7
Joined: Thu Jan 25, 2018 3:56 pm

Re: Configuration file/registry entry for wine desktop?

Post by yetoo »

I ended up just creating a new WINEPREFIX. Thank you for your help though.
Locked