What part only works if the user is logged in?
Well I tried it from the command line while logged in with ssh. If I have the user logged in to a desktop session then chrome starts and everything works fine. If I don't have the user logged in to the desktop then the python script throws an error (after a long pause) about "chrome failed to start".
just brew it! wrote:
What's the application here? Does the window need to be visible or are you just trying to automate some HTTP actions?
If it is the latter (i.e. the window does not need to be visible), you might be better off using a pure CLI solution like wget or cURL instead of automating a browser.
Just for reference this is downloading call recordings from a voip supplier who doesn't offer automatic ftp transfers or have any kind of API, just a very fiddly website that's often very slow.