Jamin Collins <[EMAIL PROTECTED]> wrote:
> gino peregrini [mailto:[EMAIL PROTECTED]] wrote:
> > [gino@hafiz Sessions]$ ls -l
> > total 12
> > -rwxr-xr-x 1 root root 2075 Jun 5 13:17 Gnome
> > -rwxr-xr-x 1 root root 44 Apr 3 14:32 KDE
> > -rwxr-xr-x 1 root root 2189 Jun 5 13:17 Xsession
Try the following:
$> su
$> echo -e "#!/bin/sh\n\nexec /usr/bin/blackbox" > /etc/gdm/Sessions/Blackbox
$> chmod 0755 /etc/gdm/Sessions/Blackbox
$> exit
Restart gdm - it should now let you choose "Blackbox" as a session in
the "Sessions" menu. When you choose this and log in, it should pop a
menu saying something like "You have choosen Blackbox, but before you
used Gnome, do you want to make Blackbox your default Session?".
Answer with "yes" if you desire so.
Now, blackbox *should* start (unless blackbox is not in /usr/bin, in
which case you would need to change the above statement accordingly).
> The contents of your Xsession file may be of some help in tracking what GDM
> attempts to execute when you chose this option.
>
> > My home dir doesn't have a .xinitrc file or bin dir. What if
> > I create them?
>
> There should not be a need for a bin directory in your home directory.
Correct. I just have found it useful to have my own personal bin-dir in
which I place scripts that I do not need/want to install system-wide.
For example, as you saw, my ~/.xinitrc simply executes the "startbb"
script in my bin-directory. This script in turn starts a bunch of other
stuff together with blackbox. By not placing this into the ~/.xinitrc I
can easily switch window-managers by simply changing .xinitrc, but I
keep my autmatic-startup-configuration for blackbox.
Sorry if this confused you.
> Many
> people use a .xinitrc file to control what is launched when X is started (ie
> blackbox).
AFAIK, ~/.xinitrc is the one read if you start X by hand. [k|x|g]dm
ignore it happily.
> However this can also be configured on a more system wide basis
> if desired.
The above solution would add blackbox as a system-wide alternative to
other windowmanagers.
-Jan
P.S.: Apologies for not having read the post carefully the first time.
--
Jan Schaumann
http://www.netmeister.org