LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-16-2003, 08:25 PM   #1
MediaTracker
LQ Newbie
 
Registered: Oct 2003
Location: Quebec City
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
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
 
Old 10-16-2003, 09:00 PM   #2
littis
LQ Newbie
 
Registered: Dec 2002
Location: usa
Distribution: LMDE
Posts: 22

Rep: Reputation: 16
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
 
1 members found this post helpful.
Old 10-16-2003, 10:12 PM   #3
MediaTracker
LQ Newbie
 
Registered: Oct 2003
Location: Quebec City
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
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

Last edited by MediaTracker; 10-16-2003 at 11:02 PM.
 
Old 10-16-2003, 10:51 PM   #4
littis
LQ Newbie
 
Registered: Dec 2002
Location: usa
Distribution: LMDE
Posts: 22

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to launch a program as a defined user at startup. Linux.tar.gz Linux - Software 2 03-20-2005 11:28 AM
Howto launch script at startup sendas4 Linux - Newbie 2 03-10-2005 10:51 AM
Have Firefox Launch X on startup Johnathan4 Linux - Software 1 02-12-2005 10:02 AM
Is there a simple way to launch commands on other machines? BrianK Linux - Networking 3 01-04-2004 04:30 PM
blackbox start programm on startup ichbinesderelch Linux - General 2 12-15-2002 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration