13

Dynamically set the display on a upstart script?

view full story
linux-howto

http://askubuntu.com – Is it possible? I want to start up a GUI app on desktop start but I the script is going on a variety of systems so I won't know if display is :1.0 or :0.0. Is there a way to use the $DISPLAY value or something in the upstart script? Update: The application starts up when a user has logged in and desktop session starts. Here is the upstart file I am working with so you have an idea: start on desktop-session-start stop on desktop-shutdown respawn env DISPLAY=:0.0 pre-start script sleep 60 #on slow machines we need to be sure the desktop has finished loading. /usr/bin/xset s off /usr/bin/ (HowTos)