-1

I am currently developping a selenium project and want it to always start the selenium Browser after Login, but by trying to put the script into /etc/profile it just gave me an error on startup:

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally

Is there any way to automatically run a python script at startup which can display things on the screen? If yes how is this achievable

2 Answers2

0

create a sh script to lanche your programe, i don't have selenium on my maching (Ubuntu 18.04)i test it with a simple browser Firefox crate a scipt sh and save it ander

/etc/profile.d

for example my script

#!/bin/bash firefox&

0

I found just found it out on myself! The solution was to load the User interface before running any scripts. loading the interface is done by putting su -l pi -c startx at the verry beginning of the first sh script.put the whole command into /home/username/.profile