
7jl5k (7jl5k) asked a question.
Hello,
Got a somewhat strange query. I love my Windows. And especially I love running a WSL (windows subsystem for linux) Ubuntu on my windows machine. Because I use ScaleFT client to SSH to our boxes I would also love if my daily login request would open automatically in a browser. When I run it from the CMD it works fine. But it does not work under the WSL.
Now i've setup my browser correctly so things like:
sensible-browser localhost
or
python3 -m webbrowser -t "http://www.google.com"
works like a charm so should be all good. But then with sft I get this error (replaced guid with MY_GUID for security)
Failed to open default browser: webbrowser: tried to open "https://app.scaleft.com/t/splunk/client_logins/MY_GUID", no screen found
Please open this URL in your browser to authenticate:
https://app.scaleft.com/t/splunk/client_logins/MY_GUID
Waiting on browser...
Any ideas to solve that are very welcome.

Hello, this is Eusebiu and I will assist you with your questions.
As you can see, the supported browsers/OS combinations does not include Linux. This doesn't mean that it will not be supported, it could work but we don't guarantee every functionality.
If you have any further inquiries regarding this topic, don't hesitate to create a ticket and get personalized assistance.
Hi @User15907066324262507667 (Vendor Management)
That's sounds like a copy paste response somewhat. I understand the "not supportability" of the thing. The question is more of a. Okay you have a Linux distrubution for Ubuntu. That is great. So can you share what exactly code is being called to open a browser? So it would get this error: "Failed to open default browser: webbrowser: tried to open "https://app.scaleft.com/t/splunk/client_logins/MY_GUID", no screen found"
Then I can work out accordingly how to setup my Linux best to actually accomodate that this particular request would work fine.
export DISPLAY=:0
that was the last missing piece for me as I had BROWSER setup already, see this for more details
https://stackoverflow.com/questions/61686075/how-do-i-start-edge-on-windows-from-wsl2