Re: Keep wine resident

Andrew Udvare <[email protected]> Mon, 29 Feb 2016 15:29:07 -0800
Newsgroups gmane.comp.emulators.wine.user
Message-ID <[email protected]>
On 28/02/16 12:01, Seth Hill wrote:
> Hello all, 
> 
> Is there a way to instruct wine to stick around after a program has run? Alternatively, is there a way to “boot” a wine prefix and keep it running? 

No booting, but why not just fork a background task that does not use a
GUI to keep Wine going forever? As long as they are using the same
prefix, the prefix will be 'up' for that time.

winegcc something simple, like a task that just loops forever and calls
Sleep().

wine sleeper.exe.so &
sleeper_pid=$! # Alternative have the sleeper write its PID to a file

Once the script is done, kill the sleeping task.

(There might be a more efficient way to write a 'daemon' for Windows
than calling Sleep() in a never-ending loop.)

Andrew