LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Launch commands at BlackBox startup (https://www.linuxquestions.org/questions/linux-software-2/launch-commands-at-blackbox-startup-104921/)

MediaTracker 10-16-2003 08:25 PM

Launch commands at BlackBox startup
 
Hello everyone,

I use BlackBox as my window manager and I want to launch a few commands when I log in to my account. On my home PC I simply use a .xsession file in which I put those commands, and then the command to launch the window manager itself, but over here at school there is no "default" option in KDM, so blackbox is launched without executing .xsession or .xinitrc (there's a "Blackbox" option in KDM).

I've been searching the BlackBox docs and the Web for an hour now, does anyone know if BlackBox has an option to launch a command upon startup ? I know style files have such an option, but that's not their purpose, I don't want to use that.

thanks a lot!
Herb

littis 10-16-2003 09:00 PM

I have this in my .xinitrc and it works fine with blackbox:

/usr/sbin/numlockx on &
/usr/X11R6/bin/xscreensaver -no-splash &
/usr/bin/gkrellm &

# Start the window manager:
exec /usr/X11R6/bin/blackbox

MediaTracker 10-16-2003 10:12 PM

Hey, thanks for the reply.

As I said I don't use a .xinitrc. As I understand it, for X to execute the .xinitrc or .xsession file, you must either use "startx" or select "default" on the login manager. My school's login manager does not have a "default" option, but has a "blackbox" option...

If there's any way I can fall back to the .xsession way of doing things it'd solve my problem too.

thanks
Herb

littis 10-16-2003 10:51 PM

Aahh, sorry....missed that point. I'm not sure how to help you now :)


All times are GMT -5. The time now is 09:36 PM.