PDA

View Full Version : [ubuntu] Start X-apps automatically



Jonnox
July 8th, 2009, 03:11 PM
Does anyone know how to start an X-Window app using a script at startup. Here is my situation:

I am using blackbox as my wm, and I want to start fbpanel and nautilus after blackbox loads. I am using this on a live cd format. I have tried creating a python script that waits until blackbox is loaded then tries to open them:


su <user> -c 'fbpanel &'

but it just returns "Cannot open display" (even though I am logged in and using blackbox).

Any ideas? Thanks in advance!

anystupidname
July 8th, 2009, 03:13 PM
Does anyone know how to start an X-Window app using a script at startup. Here is my situation:

I am using blackbox as my wm, and I want to start fbpanel and nautilus after blackbox loads. I am using this on a live cd format. I have tried creating a python script that waits until blackbox is loaded then tries to open them:


su <user> -c 'fbpanel &'

but it just returns "Cannot open display" (even though I am logged in and using blackbox).

Any ideas? Thanks in advance!

http://blackboxwm.sourceforge.net/BlackboxFAQ/StartupAndShutdown#HowToRunAnApplicationegXMMSEver ytimeBlackboxIsStarted

Jonnox
July 8th, 2009, 03:17 PM
Thanks for the prompt reply, in the live cd as well as my ubuntu version (8.04 Hardy Heron), there appears to be no

~/.Xclients
~/.xinitrc
~/.Xsession