Glad your way is working for you, but I'm not sure what problems you encountered using Xvfb. I run Fedora with Wine and Xvfb and this configuration has been rock stable for me for nearly 3 years. So this comment is mostly for the benefit of others who might be dissuaded from trying Xvfb by your message above.
Once Wine and Xvfb are set up, you simply prepend the other commands you want to run in the virtual framebuffer with a couple of wrapper commands and be sure to pass in flags to the program which allow non-interactive gui operation. For example, to run the iqfeed installer:
$ xvfb-run wine $HOME/Downloads/iqfeed_client_6_2_0_25.exe /S
and then to connect to IQFeed such that your separate program passes in the password via the admin port shortly after:
$xvfb-run wine IQConnect.exe -product [PRODUCT_ID] -version [MADEUP_VERSION_STR] -login [LOGIN_ID]
Once you see your program running fine in terminal blocking mode, you can set up cron or systemd timer units to start and stop it like this in the background, so you don't need to keep a terminal window open.
-Mark D. ValorEdited by mkvalor on Oct 14, 2023 at 07:14 PMEdited by mkvalor on Oct 14, 2023 at 07:16 PMEdited by mkvalor on Oct 14, 2023 at 07:18 PM