LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   howto run blackbox in bash? (https://www.linuxquestions.org/questions/linux-software-2/howto-run-blackbox-in-bash-107138/)

ichbinesderelch 10-22-2003 10:31 AM

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?

Faecal 10-22-2003 12:15 PM

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.

ichbinesderelch 10-22-2003 12:33 PM

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 ;)

ichbinesderelch 10-22-2003 12:45 PM

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 ;)


All times are GMT -5. The time now is 05:04 AM.