You are not logged in.

#1 2006-06-08 18:38:00

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

GDM + Openbox Sessions

Alright, I'm making a full switch from gnome to openbox mainly because of it's speed. My problem is though, the desktop is always too plain and it's a pain to start applications like "fbpanel" manually. I've looked around google and this forum and didn't find the answer to my question, how do I get programs to startup automatically when logging in through GDM to OB3. I don't use the startx command but I know the way to do it through their. I'd much rather kepe using my GDM. All help is appreciated!

Offline

#2 2006-06-08 18:52:57

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: GDM + Openbox Sessions

Wild guess is .xdefappl, .xinitrc or .xsession, been a while since I used *box.

Offline

#3 2006-06-08 19:28:21

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: GDM + Openbox Sessions

I tried adding this to Xsession:

#!/bin/sh

#
# ~/.xsession
#
# Executed by xdm/gdm/kdm at login
#

/bin/bash --login -i ~/.xinitrc
exec fbpanel &

Which did nothing, so I added the same to .xinitrc:

#!/bin/sh

#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

#exec wmaker &
exec fbpanel &

Nothing happened.

Offline

#4 2006-06-09 06:05:29

DeusExLinux
Member
Registered: 2005-03-18
Posts: 98

Re: GDM + Openbox Sessions

did you check openbox's config files?

I know there's a way to do what you want in fluxbox, which is only similiar to openbox.  But check out the man page for openbox, it might tell you relevent info about the config files (the command should look the same "exec fbpanel &", you would put it somewhere, slightly before it loads openbox.  (could be worng about that)

Offline

#5 2006-06-09 07:38:46

lessthanjake
Member
From: Norway
Registered: 2005-11-09
Posts: 319
Website

Re: GDM + Openbox Sessions

Did you make them executable?

Offline

#6 2006-06-09 09:42:13

palandir
Member
Registered: 2006-05-14
Posts: 73

Re: GDM + Openbox Sessions

fbpanel &
exec openbox

Offline

#7 2006-06-09 09:49:45

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: GDM + Openbox Sessions

Put something like this in your .Xclients and make it executable:

#!/bin/sh
/path/to/fbpanel &
exec /usr/bin/openbox

Then, in GDM, you select "Default System Session" as your Session. If there's something like "Custom Session" (Can't tell since I'm not using gdm) you could choose that as well, but you'd had to use .xsession instead then.

To find out the magic behind this stuff you can have a look at /opt/gnome/etc/gdm/Xsession. The "Default System Session" (/opt/gnome/share/gdm/BuiltInSessions/default.desktop) just calls it with "default" as param.

Offline

Board footer

Powered by FluxBB