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-22-2003, 10:31 AM   #1
ichbinesderelch
Member
 
Registered: Nov 2002
Location: Austria
Distribution: Redhat 9
Posts: 140

Rep: Reputation: 15
howto run blackbox in bash?


hey,
i installed blackbox today, i also managed it to show up at the window manager list on the login screen
the file is:
#!/bin/bash

exec /usr/local/bin/blackbox


in the other files there is written, in example for gnome:
#!/bin/bash

exec /etc/X11/xdm/Xsession gnome


but if i write teh /etc/X11... thing in the blackbox file too gnome starts instead, any idea howto do it?
 
Old 10-22-2003, 12:15 PM   #2
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
Is blackbox starting correctly with your /usr/local/bin line? If so, quit whining! ;-)

Basically, for the "exec /etc/X11/xdm/Xsession <WM>" business to work, the Xsession script needs to know about blackbox. Have a look in it.
 
Old 10-22-2003, 12:33 PM   #3
ichbinesderelch
Member
 
Registered: Nov 2002
Location: Austria
Distribution: Redhat 9
Posts: 140

Original Poster
Rep: Reputation: 15
hey, thx for responsing ;)
yes, it works with the /usr/local...
i now took a look at the Xsession file,

Quote:
# now, we see if xdm/gdm/kdm has asked for a specific environment
case $# in
1)
if [ -x /usr/share/apps/switchdesk/Xclients.$1 ]; then
exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.$1";
fi;

case $1 in
failsafe)
exec -l $SHELL -c "xterm -geometry 80x24-0-0"
;;
blackbox)
exec -l $SHELL -c "$SSHAGENT /usr/local/bin/blackbox"
;;
gnome)
exec -l $SHELL -c "$SSHAGENT gnome-session"
;;
kde|kde1|kde2)
exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.kde"
;;
twm)
# fall back to twm
exec -l $SHELL -c "$SSHAGENT /usr/share/apps/switchdesk/Xclients.twm"
;;
esac
esac
i added the blackbox line myself, but it doesn't work though, in the /usr/share/apps/switchdesk/Xclients. there was no file with Xclients.blackbox, so i added one with the same content like other files have, but still nothing, did i edit something wrong?
thx ;)
 
Old 10-22-2003, 12:45 PM   #4
ichbinesderelch
Member
 
Registered: Nov 2002
Location: Austria
Distribution: Redhat 9
Posts: 140

Original Poster
Rep: Reputation: 15
okay, in the Xsession file i wrote /usr/local/share/blackbox or something, and not the /usr/apps/.../Xclients.blackbox, i edited this, but nothing though, i'm nearly thinkin i'm doin something wrong haha ;)
 
  


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
which libraries do I need to run blackbox?? minike Slackware 11 09-10-2004 04:18 PM
Howto start bash Christoffer81 Linux - Newbie 5 06-13-2004 01:19 AM
howto create a file based on date in bash rohan208 Linux - Newbie 2 05-07-2004 03:54 PM
Blackbox wont run OpenOffice mooreted Linux - Software 5 04-07-2004 10:24 AM
HowTo for bash? Sites? Books? JZL240I-U Programming 5 09-22-2003 08:58 AM

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

All times are GMT -5. The time now is 01:36 AM.

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