Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 14360

How to run python script on login

$
0
0

I am attempting to load a pyhton script that launches a Firefox Geckodriver under Selenium whenever a specific kiosk user logs in.

I've tried launching this via .profile, however geckodriver throws an error "Error: no DISPLAY environment variable specified". I've tried loading this from .bashrc, .bash_profile, and .xsession(deprecated) with little luck. The browser will launch with the line in .bashrc, but only when a terminal is opened manually and not when the user logs in.

How do I launch this python script on login for this user with the display environment it needs?


Viewing all articles
Browse latest Browse all 14360

Trending Articles