You are not logged in.

#1 2010-04-07 14:23:38

Sol
Member
Registered: 2010-03-17
Posts: 3

SLiM login to Openbox fails [SOLVED]

A peculiar issue cropped up after updating to GNOME 2.30. I have duplicated this on another system.

I'm using SLiM, GNOME, and Openbox. Not a Openbox-GNOME session but a standalone Openbox session.

I tell SLiM to login to Openbox, and it starts to login. I get a glimpse of the desktop and then I see my GNOME desktop background (I'm not autostarting nautilus). I also sometimes see a new account creation for e-mail or it might be a new account creation for empathy - it goes away too fast to tell. Then I am thrown back to the SLiM login screen.

Any help would be appreciated. Thanks.

.xinitrc:

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

# exec gnome-session
# exec startkde
# exec startxfce4
# exec lxde
# exec openbox
# exec fluxbox
# exec ck-launch-session gnome-session
# exec xterm

# The following variable defines the session which is started if the user
# doesn't explicitly select a session
# Source: http://svn.berlios.de/svnroot/repos/slim/trunk/xinitrc.sample

DEFAULT_SESSION=gnome-session

case $1 in
gnome)
exec ck-launch-session gnome-session
;;
openbox)
exec openbox-session
;;
*)
exec ck-launch-session $DEFAULT_SESSION
;;
esac

/var/log/slim.log of a GNOME logout and an attempt to login to Openbox:

slim: waiting for X server to shut down

/usr/bin/xauth:  creating new authority file /var/run/slim.auth


slim: waiting for X server to begin accepting connections
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.7.5.902 (1.7.6 RC 2)
Release Date: 2010-03-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.33-ARCH x86_64 
Current Operating System: Linux lost 2.6.32-ARCH #1 SMP PREEMPT Mon Mar 15 20:44:03 CET 2010 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz26 root=/dev/disk/by-uuid/b8d30cdc-449a-462b-8cd1-89b45bedb6e2 ro quiet
Build Date: 13 March 2010  07:35:38PM
 
Current version of pixman: 0.18.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  7 10:03:27 2010
(==) Using config file: "/etc/X11/xorg.conf"
.(EE) Logitech G9 Laser Mouse: failed to initialize for relative axes.

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
Errors from xkbcomp are not fatal to the X server
/usr/bin/xauth:  creating new authority file /home/USER/.Xauthority

(polkit-gnome-authentication-agent-1:12013): polkit-gnome-1-WARNING **: Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '12013' org.freedesktop.ConsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for%20process%20%2712013%27

** (nm-applet:12011): WARNING **: <WARN>  request_name(): Could not acquire the NetworkManagerUserSettings service.
  Error: (9) Connection ":1.263" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file

empathy-accounts: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
gnome-settings-daemon: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
empathy: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
fusion-icon: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
 * Detected Session: unknown
 * Searching for installed applications...
 * NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING
 * Using the GTK Interface
 * Starting Compiz
 ... executing: compiz --replace --sm-disable --ignore-desktop-hints ccp

slim: waiting for X server to shut downX connection to :0.0 broken (explicit kill or server shutdown).



/usr/bin/xauth:  creating new authority file /var/run/slim.auth


slim: waiting for X server to begin accepting connections
This is a pre-release version of the X server from The X.Org Foundation.
It is not supported in any way.
Bugs may be filed in the bugzilla at http://bugs.freedesktop.org/.
Select the "xorg" product for bugs you find in this release.
Before reporting bugs in pre-release versions please check the
latest version in the X.Org Foundation git repository.
See http://wiki.x.org/wiki/GitPage for git access instructions.

X.Org X Server 1.7.5.902 (1.7.6 RC 2)
Release Date: 2010-03-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.33-ARCH x86_64 
Current Operating System: Linux lost 2.6.32-ARCH #1 SMP PREEMPT Mon Mar 15 20:44:03 CET 2010 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz26 root=/dev/disk/by-uuid/b8d30cdc-449a-462b-8cd1-89b45bedb6e2 ro quiet
Build Date: 13 March 2010  07:35:38PM
 
Current version of pixman: 0.18.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  7 10:03:39 2010
(==) Using config file: "/etc/X11/xorg.conf"
.(EE) Logitech G9 Laser Mouse: failed to initialize for relative axes.

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Duplicate shape name ""
>                   Using last definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
> Warning:          Multiple doodads named ""
>                   Using first definition
Errors from xkbcomp are not fatal to the X server

autostart.sh:

# 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 2>&1; then
    BG=hsetroot
else
    if which esetroot >/dev/null 2>&1; then
    BG=esetroot
    else
    if which xsetroot >/dev/null 2>&1; then
        BG=xsetroot
    fi
    fi
fi
test -z $BG || $BG -solid "#303030"

# D-bus
if which dbus-launch >/dev/null 2>&1 && 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 2>&1; 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 2>&1; then
  xfce-mcs-manager n &
fi

# Preload stuff for KDE apps
if which start_kdeinit >/dev/null 2>&1; 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="OPENBOX"
if which /usr/lib/openbox/xdg-autostart >/dev/null 2>&1; then
  /usr/lib/openbox/xdg-autostart $DESKTOP_ENV
fi

Last edited by Sol (2010-04-07 17:35:53)

Offline

#2 2010-04-07 14:26:08

Sol
Member
Registered: 2010-03-17
Posts: 3

Re: SLiM login to Openbox fails [SOLVED]

Apparently it is either something in autostart.sh or with using openbox-session to launch openbox as I just changed the .xinitrc to: exec openbox and it launched.

Offline

#3 2010-04-07 14:41:14

alexandrite
Member
Registered: 2009-03-27
Posts: 326

Re: SLiM login to Openbox fails [SOLVED]

Try commenting out the lines pertaining to the GNOME settings daemon (Lines 25-28 or so).

Offline

#4 2010-04-07 17:35:22

Sol
Member
Registered: 2010-03-17
Posts: 3

Re: SLiM login to Openbox fails [SOLVED]

After commenting out nearly everything in the above autostart.sh, I also found that using . $GLOBALAUTOSTART will also cause the same issue. Once I commented that out, SLiM logged me into Openbox just fine.

Thanks alexandrite.

Offline

Board footer

Powered by FluxBB