LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   openbox+gdm: session not starting (http://www.linuxquestions.org/questions/linux-desktop-74/openbox-gdm-session-not-starting-536548/)

Uruclef 03-11-2007 11:32 AM

openbox+gdm: session not starting
 
Hi all! I'm on a Debian etch box, and I have a problem with openbox and gdm. What I'm trying to obitain is that when my openbox session starts (and only when openbox starts) other programs (such as pypanel, bbkeys..) start with it. So, I created /usr/share/xsessions/openbox-autostart.desktop with this content:

Code:

[Desktop Entry]
Encoding=UTF-8
Name=Openbox Autostart
Comment=Openbox with autostart goodness
Exec=/tmp/autostart.sh
TryExec=/tmp/autostart.sh
Icon=
Type=Application

Code:

-rwxr-xr-x 1 root root  172 2007-03-11 17:28 openbox-autostart.desktop
Then, I created /tmp/autostart.sh (the location is temporary for testing purposes only):

Code:

#!/bin/bash
pypanel &
# This prevents the panel from failing if it loads too fast
if pgrep pypanel
then exec openbox
else pypanel && exec openbox
fi
bbkeys
conky -d -y 26

Code:

-rwxrwxrwx 1 uruclef uruclef  368 2007-03-11 17:33 autostart.sh

I don't know if the second file is correct or not (I copied it from a tutorial), but when in gdm I select the correct session and make it start, it tells me
Code:

Xsession: unable to launch /tmp/autostart.sh, not found; falling back to default session
I just don't know what to do :( Thanks in advance for helping

macondo 03-11-2007 07:57 PM

Hmm...this is simpler:

$ nano .xinitrc

#!/bin/sh

bbkeys &
pypanel &
openbox

save/exit

# dpkg -P gdm (you don't need it)

Ctrl+Alt+Backspace

$ startx [Enter]

If you want to switch to another wm, from the debian menu:
Programs > Window Managers and choose it, this doesn't work with DEs like gnome or kde.


All times are GMT -5. The time now is 02:20 AM.