https://bugs.winehq.org/show_bug.cgi?id=45974
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- (In reply to Sergey Alirzaev from comment #2)
(In reply to Alexandre Julliard from comment #1)
There's a 1-second delay before shutting down an existing explorer process, to improve performance in case another app is launched right away. That's on purpose.
`sleep 5` is because lesser values have misfired at least once. What would be the proper way to wait for it to die or kill it for good?
Why do you need that? What are you trying to do?
If the goal is to launch inside a specific desktop, you can do that by invoking explorer explicitly, something like "explorer /desktop=foo winecfg".