How do you start wine in desktop environment mode after its installed?

Questions about Wine on Linux
Locked
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

I want to know how do I run wine in windows desktop environment mode after it's installed, not interacted and the wine configuration is not being updated.

It should look like this when wine is interacted.

Image

How do I do this?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

(I'm not sure I understand your question correctly, so correct me if I'm wrong)
You can enable a virtual desktop with winecfg

Code: Select all

winecfg
    ↳ Graphics → Emulate a virtual desktop
Or use wine explorer /desktop

Code: Select all

wine explorer /desktop=VirtualDesktop,1024x786
# with taskbar and Start menu:
wine explorer /desktop=shell,1024x786
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

jkfloris wrote: Mon Apr 03, 2023 11:01 am (I'm not sure I understand your question correctly, so correct me if I'm wrong)
You can enable a virtual desktop with winecfg

Code: Select all

winecfg
    ↳ Graphics → Emulate a virtual desktop
Or use wine explorer /desktop

Code: Select all

wine explorer /desktop=VirtualDesktop,1024x786
# with taskbar and Start menu:
wine explorer /desktop=shell,1024x786
I already know how to do all of this but I want to do the one shown in the image that I show, I don't know if it's possible.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

To update the wineprefix, you can use the command: wineboot -u
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

jkfloris wrote: Tue Apr 04, 2023 10:23 am To update the wineprefix, you can use the command: wineboot -u
So this will make the wine configuration pop-up window shown in virtual desktop shell environment mode like in the image that I show? :?:
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

The wineboot -u command displays the window: "The Wine configuration in /home/..."
In case this does not display in a virtual desktop, activate the virtual desktop in winecfg.
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

jkfloris wrote: Wed Apr 05, 2023 4:22 am The wineboot -u command displays the window: "The Wine configuration in /home/..."
In case this does not display in a virtual desktop, activate the virtual desktop in winecfg.
Is there a way to enable virtual desktop without going to winecfg and graphics? Like some command?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

Three options:

1. Use winetricks

Code: Select all

winetricks vd=1024x786
2. Add the registry keys by hand:

Code: Select all

wine reg ADD "HKCU\\Software\Wine\Explorer" /v Desktop /d Default
wine reg ADD "HKCU\\Software\Wine\Explorer\Desktops" /v Default /d 1024x786
3. Import a registry file:
Create the registry file, for example desktop.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Wine\Explorer]
"Desktop"="Default"
[HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops]
"Default"="1024x786"
Import the file:

Code: Select all

wine reg import desktop.reg
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

jkfloris wrote: Thu Apr 06, 2023 7:27 am Three options:

1. Use winetricks

Code: Select all

winetricks vd=1024x786
2. Add the registry keys by hand:

Code: Select all

wine reg ADD "HKCU\\Software\Wine\Explorer" /v Desktop /d Default
wine reg ADD "HKCU\\Software\Wine\Explorer\Desktops" /v Default /d 1024x786
3. Import a registry file:
Create the registry file, for example desktop.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Wine\Explorer]
"Desktop"="Default"
[HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops]
"Default"="1024x786"
Import the file:

Code: Select all

wine reg import desktop.reg
Thanks for these commands but I want the wine configuration to appear in virtual desktop mode after its installed once again and I found these videos of what it should look like.

I hope you understand me.

https://youtu.be/deECoXkra0E?t=30

https://youtu.be/KsO92wSH_K4?t=77
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

Unfortunately, I don't know exactly how ExaGear is doing that. You can, however, get the same effect by putting a temporary user.reg file in an empty ~/.wine directory.

- Create the ~/.wine directory

- Create a user.reg file in ~/.wine with the following content:

Code: Select all

WINE REGISTRY Version 2

[Software\\Wine\\Explorer]
"Desktop"="shell"

[Software\\Wine\\Explorer\\Desktops]
"shell"="1024x786"
- Start Wine:

Code: Select all

wine explorer
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

jkfloris wrote: Fri Apr 07, 2023 10:27 am Unfortunately, I don't know exactly how ExaGear is doing that. You can, however, get the same effect by putting a temporary user.reg file in an empty ~/.wine directory.

- Create the ~/.wine directory

- Create a user.reg file in ~/.wine with the following content:

Code: Select all

WINE REGISTRY Version 2

[Software\\Wine\\Explorer]
"Desktop"="shell"

[Software\\Wine\\Explorer\\Desktops]
"shell"="1024x786"
- Start Wine:

Code: Select all

wine explorer
Is there a way to create the ~/.wine directory without the wine configuration updating window popping-up?

also how do I create the ~/.wine directory by myself?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

You can create the directory with mkdir ~/.wine
Then place your handmade user.reg file in the folder.
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

jkfloris wrote: Fri Apr 07, 2023 2:45 pm You can create the directory with mkdir ~/.wine
Then place your handmade user.reg file in the folder.
where can I make a .reg file?

can I make one in notepad?
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

Use can use your favorite text editor. Whether that's vi, gedit, notepad or something else doesn't matter.
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

jkfloris wrote: Sat Apr 08, 2023 4:04 am Use can use your favorite text editor. Whether that's vi, gedit, notepad or something else doesn't matter.
So after I made my own user.reg file I should go to the ~/.wine directory and replace the user.reg file to my own user.reg file?

I just copied and pasted the code that you gave me and pasted in a untitled blank text editor, am I doing this right?
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Update

Post by SuperVictor64 »

Alright I made my own user.reg file, I moved it to the empty .wine folder, went to terminal and typed in "wine explorer /desktop=shell" and the wine configuration window popped up in virtual desktop mode, it worked and after when I finished installing wine mono when the wine mono installer pop-up appeared, the virtual desktop shell automatically closes, I tried getting back to the virtual desktop by typing "wine explorer /desktop=shell" again but it automatically closes again and didn't let me in the wine virtual desktop shell. is there a way to prevent wine virtual desktop shell from automatically closing without using wine task manager or anything like that or give me a code that can prevent wine virtual desktop shell from automatically closing for the .reg file?
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

Thanks for the help, the user.reg file that I made with the code that you gave me is working on wine and here is what it look like

Image

The taskbar appears when wine configuration window pops-up saying it's being updated

It doesn't looks like exagear's user.reg file from the video that I showed you, it almost look accurate but not yet. if only I extracted the exagear image obb file and find it's user.reg if it has one.

Also exagear's user.reg file doesn't emulate a virtual desktop, it is left unchecked and I think it uses shell or something like that. The light theme is messing up the classic no theme when I typed in "wine explorer /desktop=shell,800x600 winecfg" in terminal after wine configuration finished updating.

Image

I wish if you gave me a another different code that could replicate/recreate exagear's user.reg file but it must be accurate like the 2 videos that I showed you.

Image

I tested it out by running a program and wine is running normally.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How do you start wine in desktop environment mode after its installed?

Post by jkfloris »

I expect Exagear is not using a user.reg file, but it has changed Wine's source code to show a desktop on startup.
If you want to know exactly how they display the desktop when Wine is launched, you will have to contact the creators of Exagear.
The taskbar appears when wine configuration window pops-up saying it's being updated
If you don't want a taskbar, change "shell" to something else. For example:

Code: Select all

WINE REGISTRY Version 2

[Software\\Wine\\Explorer]
"Desktop"="firstboot"

[Software\\Wine\\Explorer\\Desktops]
"firstboot"="1024x786"
Also exagear's user.reg file doesn't emulate a virtual desktop, it is left unchecked and I think it uses shell or something like that.
The "Enable a virtual desktop" checkbox turns on if there is a registry key in HKCU\Software\Wine\Explorer
So you will have to delete the previously created registry keys. You can create the Wine prefix with:

Code: Select all

wine reg delete HKCU\\Software\\Wine\\Explorer /f
Then start Wine with:

Code: Select all

wine explorer /desktop=shell explorer
Also, it looks like Exagear uses a different version of Explorer. So you don't get completely the same look with Wine.
SuperVictor64
Level 2
Level 2
Posts: 23
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do you start wine in desktop environment mode after its installed?

Post by SuperVictor64 »

If you want to know exactly how they display the desktop when Wine is launched, you will have to contact the creators of Exagear.
I don't know if the creators of exagears are not available anymore due to them discontinuing all exagear products on February 28, 2019 but I'll try to find a way to get in contact with them about this if they are available.
If you don't want a taskbar, change "shell" to something else. For example:
I want the user.reg file to look accurate like exagear's desktop shell but i'll try the code that you gave to me.
Also, it looks like Exagear uses a different version of Explorer. So you don't get completely the same look with Wine.
Maybe I should look for their version of explorer somewhere in exagear windows emulator, file upload it and download it to try it on wine if it works.

I'm not sure if they have it somewhere in the system folder or other folders
Locked