John Marr <[EMAIL PROTECTED]> wrote:
> I managed to get gkrellm and a background to load up on start, but I did
> it in an unorthadox way. In order to have blackbox as an option in gdm, I
> had to add a Blackbox script to the /etc/gdm/Sessions/ directory. I added
> "gkrellm -w &" and a background command to the /etc/gdm/Sessions/Blackbox
> script and it worked.

[...]

> Since I am the only user of this machine, it does not really matter, but I
> would like to be able, if I log in as another user, the have a different
> background.

How about using the following:

,----[ /etc/X11/gdm/Blackbox ]
| #!/bin/sh
| #
| # if the user has a file called ".startbb" in his/her $HOME, we assume
| # it contains all the stuff they want to start up before blackbox.  We
| # also assume that they know what they're doing and have "exec blackbox"
| # as the final statement in that file.
|
| # adjust so it points to the location of blackbox on your machine
| blackbox=/usr/bin/blackbox
|
| # uncomment the following if you want $HOME/.xsession to be executed no
| # matter what
| # if [ -x "$HOME/.xsession" ]; then
| #     exec "$HOME/.xsession"
| # fi
|
| if [ -x "$HOME/.startbb" ]; then
|       exec "$HOME/.starbb"
| else
|       exec "$blackbox"
| fi
|
`----

Then each user can put whatever they want into ~/.startbb (which needs
to be chmod 755), and if a user does not have such a file, blackbox is
started all by itself.

(Note: this script is not tested -- I just wrote it down from the top of
my head, might need tweaking.)

-Jan

-- 
http://www.netmeister.org
http://guinness.cs.stevens-tech.edu/~jschauma/

Reply via email to