LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 03-11-2007, 11:32 AM   #1
Uruclef
Member
 
Registered: Sep 2004
Distribution: Debian Etch
Posts: 45

Rep: Reputation: 15
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
 
Old 03-11-2007, 07:57 PM   #2
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 49
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GDM + Openbox & pypanel skybl4ck Linux - General 0 03-13-2005 09:34 PM
gdm overwrites /etc/gdm/Session/fluxbox _flaab_ Mandriva 0 12-21-2003 10:58 AM
GDM Session in 2.4 arthurzap Linux - Software 0 10-01-2003 08:06 AM
GDM Session problems hkctr Slackware 0 09-21-2003 05:07 PM
add a session to Session of gdm freenet Linux - Software 0 08-07-2003 05:21 AM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration