You are not logged in.

#1 2008-05-30 12:27:54

Nomearod
Member
Registered: 2008-05-23
Posts: 19

Openbox doesn't start

I always used gnome but after seen some cool openbox's wallpapers I decided to install openbox.

I followed the guide in the wiki (installed openbox, themes, pypanel, obconf) and put "exec openbox-session"  in my /home/*username*/.xinitrc.

However, every time I try do run a openxbox-only session I got a lot of errors. I tried to find the log but with no success, but some of the errors are about kde and permissions, which is kind of strange since I don't have KDE or any KDE related program installed. However, I can run gnome-openbox sessions, and if I run a "terminal seassion" and type "openbox" it runs without any problem.

Any tips?
(sorry my English)

Offline

#2 2008-05-30 12:40:15

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: Openbox doesn't start

If you use GDM to login, try selecting "openbox" from the sessions menu.

Offline

#3 2008-05-30 12:41:58

tj
Member
Registered: 2008-01-11
Posts: 48

Re: Openbox doesn't start

does it work any better if you add this to ~/.xinitrc

dbus-launch --exit-with-session openbox &

Offline

#4 2008-05-30 12:44:51

Nomearod
Member
Registered: 2008-05-23
Posts: 19

Re: Openbox doesn't start

Tenken wrote:

If you use GDM to login, try selecting "openbox" from the sessions menu.

That's what I allways do =/
---
I'm gonna try put that in my .xinirtcr

EDIT:

No success.

Most of the errors say "cannot creat /home/*user/.kde***

Last edited by Nomearod (2008-05-30 13:09:41)

Offline

#5 2008-05-30 13:23:37

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Openbox doesn't start

edit ~/.config/openbox/autostart.sh and comment out all the kde related stuff to see i it helps:

# Preload stuff for KDE apps
#if which start_kdeinit >/dev/null; then
#  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
#fi

Offline

#6 2008-05-30 13:26:08

Nomearod
Member
Registered: 2008-05-23
Posts: 19

Re: Openbox doesn't start

bangkok_manouel wrote:

edit ~/.config/openbox/autostart.sh and comment out all the kde related stuff to see i it helps:

# Preload stuff for KDE apps
#if which start_kdeinit >/dev/null; then
#  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
#fi

I don't have that file in my /home/*user/.conf/openbox hmm

I only have menu.xml and rc.xml.

However, this is how my aurostar.sh in /etc/xdg/openbox/ looks like:

# This shell script is run before Openbox launches.
# Environment variables set here are passed to the Openbox session.

# Set a background color
BG=""
if which hsetroot >/dev/null; then
    BG=hsetroot
else
    if which esetroot >/dev/null; then
    BG=esetroot
    else
    if which xsetroot >/dev/null; then
        BG=xsetroot
    fi
    fi
fi
test -z $BG || $BG -solid "#303030"

# D-bus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval `dbus-launch --sh-syntax --exit-with-session`
fi

# Make GTK apps look and behave how they were set up in the gnome config tools
if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  /usr/libexec/gnome-settings-daemon &
elif which gnome-settings-daemon >/dev/null; then
  gnome-settings-daemon &
# Make GTK apps look and behave how they were set up in the XFCE config tools
elif which xfce-mcs-manager >/dev/null; then
  xfce-mcs-manager n &
fi

# Preload stuff for KDE apps
if which start_kdeinit >/dev/null; then
  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
fi

# Run XDG autostart things.  By default don't run anything desktop-specific
# See xdg-autostart --help more info
DESKTOP_ENV=""
if which /usr/lib/openbox/xdg-autostart >/dev/null; then
  /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
fi

Last edited by Nomearod (2008-05-30 13:27:48)

Offline

#7 2008-05-30 13:33:21

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Openbox doesn't start

Nomearod wrote:
bangkok_manouel wrote:

edit ~/.config/openbox/autostart.sh and comment out all the kde related stuff to see i it helps:

# Preload stuff for KDE apps
#if which start_kdeinit >/dev/null; then
#  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
#fi

I don't have that file in my /home/*user/.conf/openbox hmm

I only have menu.xml and rc.xml.

However, this is how my aurostar.sh in /etc/xdg/openbox/ looks like:

# This shell script is run before Openbox launches.
# Environment variables set here are passed to the Openbox session.

# Set a background color
BG=""
if which hsetroot >/dev/null; then
    BG=hsetroot
else
    if which esetroot >/dev/null; then
    BG=esetroot
    else
    if which xsetroot >/dev/null; then
        BG=xsetroot
    fi
    fi
fi
test -z $BG || $BG -solid "#303030"

# D-bus
if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then
       eval `dbus-launch --sh-syntax --exit-with-session`
fi

# Make GTK apps look and behave how they were set up in the gnome config tools
if test -x /usr/libexec/gnome-settings-daemon >/dev/null; then
  /usr/libexec/gnome-settings-daemon &
elif which gnome-settings-daemon >/dev/null; then
  gnome-settings-daemon &
# Make GTK apps look and behave how they were set up in the XFCE config tools
elif which xfce-mcs-manager >/dev/null; then
  xfce-mcs-manager n &
fi

# Preload stuff for KDE apps
if which start_kdeinit >/dev/null; then
  LD_BIND_NOW=true start_kdeinit --new-startup +kcminit_startup &
fi

# Run XDG autostart things.  By default don't run anything desktop-specific
# See xdg-autostart --help more info
DESKTOP_ENV=""
if which /usr/lib/openbox/xdg-autostart >/dev/null; then
  /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
fi

well this file is used system wide. you can copy it to your .config/openbox dir or modify it directly from here.

Offline

#8 2008-05-30 13:40:17

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Openbox doesn't start

I just use "exec openbox" in my .xinitrc instead of "exec openbox-session".

~/.xinitrc

pypanel &
exec openbox

edit:
I don't have any autostart.sh script in my ~/.config/openbox folder.

Last edited by SiD (2008-05-30 13:41:44)

Offline

#9 2008-05-30 13:45:40

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Openbox doesn't start

SiD wrote:

I just use "exec openbox" in my .xinitrc instead of "exec openbox-session".

~/.xinitrc

pypanel &
exec openbox

edit:
I don't have any autostart.sh script in my ~/.config/openbox folder.

from http://icculus.org/openbox/index.php/Help:Autostart

The autostart script is located at ~/.config/openbox/autostart.sh. If that file does not exist, then the system-wide default script, located at /etc/xdg/openbox/autostart.sh, is run instead.

Offline

#10 2008-05-30 13:48:39

Nomearod
Member
Registered: 2008-05-23
Posts: 19

Re: Openbox doesn't start

Here's what I did:
1- Copied autostart.sh to my ~/config/openbox
2- Put "#" at KDE -> KDE errors disappeared
3- Put "#" at d-bus -> More errors disappeared

Now is still doens't start but the log doens't show any errors messages, but instead it stops at "searching for installed applications".

Anyone with a functional autstar.sh could coopy it to here so I could replace mine to see what happens?

Last edited by Nomearod (2008-05-30 13:51:00)

Offline

#11 2008-05-30 13:50:44

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Openbox doesn't start

From same page.

When you run the openbox command on its own, the autostart scripts will not run. They are run by openbox-session or when you log in graphically with the "Openbox" session type.

I just use "openbox" to start, and no login manager. wink

edit:
Sometimes I use SLiM, but there are no problems. I think, because SLiM just uses the ~/.xinitrc file.

edit:
@Nomearod
Do you use a Login-Manager?

Last edited by SiD (2008-05-30 13:55:11)

Offline

#12 2008-05-30 13:56:18

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Openbox doesn't start

Nomearod wrote:

Here's what I did:
1- Copied autostart.sh to my ~/config/openbox
2- Put "#" at KDE -> KDE errors disappeared
3- Put "#" at d-bus -> More errors disappeared

Now is still doens't start but the log doens't show any errors messages, but instead it stops at "searching for installed applications".

Anyone with a functional autstar.sh could coopy it to here so I could replace mine to see what happens?

do not comment out the dbus stuff... only kde and that should be enough

edit: what are the errors BTW ?

Last edited by bangkok_manouel (2008-05-30 13:57:34)

Offline

#13 2008-05-30 15:26:48

Nomearod
Member
Registered: 2008-05-23
Posts: 19

Re: Openbox doesn't start

Don't know why, but I tried the "#" thing again with KDE and it worked.

I can now use openbox without any problems, but after what I saw, I'll have a long way customizing it.

Offline

#14 2008-05-30 17:40:11

Sjoden
Member
From: WA
Registered: 2007-08-16
Posts: 380
Website

Re: Openbox doesn't start

Install obmenu and obconf with pacman. Will make life a lot easier.

Offline

Board footer

Powered by FluxBB