How do I prevent wine virtual desktop shell from automatically closing?

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

How do I prevent wine virtual desktop shell from automatically closing?

Post by SuperVictor64 »

When I run wine in virtual desktop shell (wine explorer /desktop=shell) and I run an application and close the program after I finish testing on it, the virtual desktop shell closes by itself automatically and I want to find a way of how can I prevent wine virtual desktop shell from automatically closing by itself without using wine task manager.
jkfloris
Level 12
Level 12
Posts: 3136
Joined: Thu Aug 14, 2014 10:10 am

Re: How do I prevent wine virtual desktop shell from automatically closing?

Post by jkfloris »

As you have noticed, the virtual desktop will close when the last program is shut down. You can leave a program running in the background to keep the window open.
For example:

Code: Select all

wine explorer /desktop=shell start /b /min cmd /c pause
I leave it up to you how you want to close Wine.
SuperVictor64
Level 2
Level 2
Posts: 22
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do I prevent wine virtual desktop shell from automatically closing?

Post by SuperVictor64 »

jkfloris wrote: Fri Apr 14, 2023 11:40 am As you have noticed, the virtual desktop will close when the last program is shut down. You can leave a program running in the background to keep the window open.
For example:

Code: Select all

wine explorer /desktop=shell start /b /min cmd /c pause
I leave it up to you how you want to close Wine.
I want to do it without leaving the program running in the background, if it's possible.
madewokherd
Level 4
Level 4
Posts: 143
Joined: Mon Jun 02, 2008 5:03 pm

Re: How do I prevent wine virtual desktop shell from automatically closing?

Post by madewokherd »

This behavior is hard-coded and would have to be changed in the source code.
SuperVictor64
Level 2
Level 2
Posts: 22
Joined: Sat Jan 08, 2022 3:07 pm

Re: How do I prevent wine virtual desktop shell from automatically closing?

Post by SuperVictor64 »

madewokherd wrote: Fri Apr 14, 2023 3:54 pm This behavior is hard-coded and would have to be changed in the source code.
Is there a way that I can prevent wine virtual desktop shell from automatically closing?

Like some user.reg code or system.reg code?

Also where can I find the source code?
Locked