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?