Add force headless option
Hi
I have been having problems with using the client on a server accessed over ssh. Basically, the client detects that I have a web browser installed (the lynx TUI browser) and tries to use it to login. The result is... not much fun.
I have a workaround hack that I have been using and thought it might be generally useful so am contributing it here. Basically I just added an boolean option to the login
method called force_headless
. It simply bypasses the browser check and goes straight to printing the URL for in order to use on a web browser on my local machine.
Happy to change this around if there's a preferred design, this just seemed like the quickest approach.
Thanks!