main issue was to figure out that the thread needs to wait a bit after processBuilder is called to start the browser and waitfor() can't be used because it doesn't return until the started process completes.
I only tested this out is WSL. Needs to be tested on standard linux, macos and windows.
Added logic to determine OS and spawn a browser process based on the OS
main issue was to figure out that the thread needs to wait a bit after processBuilder is called to start the browser and waitfor() can't be used because it doesn't return until the started process completes.
I only tested this out is WSL. Needs to be tested on standard linux, macos and windows.
Added logic to determine OS and spawn a browser process based on the OS