Can not log into openbox from GDM in Karmic Beta/RC

Bug #459005 reported by ankspo71
54
This bug affects 10 people
Affects Status Importance Assigned to Milestone
openbox (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: openbox

I can't log into an openbox session from the new GDM. I used sudo apt-get install openbox and the openbox session appears in the session menu, and I am able to select it, but it won't log into openbox. It keeps bringing me right back to the GDM screen. I'm thinking that the openbox package hasn't been updated to work with the new GDM, since I had no trouble at all getting into openbox in Jaunty's GDM. This is openbox version 3.4.7.2-4 for Karmic. I had this problem in Karmic Beta, and still having the same problem in Karmic RC.

lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
(Karmic Release Candidate)

apt-cache policy openbox
openbox:
  Installed: 3.4.7.2-4
  Candidate: 3.4.7.2-4
  Version table:
 *** 3.4.7.2-4 0
        500 http://mirror.anl.gov karmic/universe Packages
        100 /var/lib/dpkg/status

(I changed mirrors because I didn't plan on updating tonight, but I had this same problem from the main US repo while using the beta karmic.)

Thanks,
James

ProblemType: Bug
Architecture: i386
Date: Fri Oct 23 07:38:58 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release Candidate i386 (20091020.3)
NonfreeKernelModules: nvidia
Package: openbox 3.4.7.2-4
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: openbox
Uname: Linux 2.6.31-14-generic i686
XsessionErrors:
 (gnome-settings-daemon:2519): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2616): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2637): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
 (gnome-panel:2615): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -12 and height 25

Revision history for this message
ankspo71 (jamesb-71) wrote :
Revision history for this message
ankspo71 (jamesb-71) wrote :

Xterm session reports:
openbox
(openbox:4185): Openbox-Warning **: Openbox is configured for 4 desktops, but the current session has 1. Overriding the Openbox Configureation. Openbox message: Unable to find a valid menu file debian-menu.xml

Revision history for this message
ankspo71 (jamesb-71) wrote :

Hi Again,
I came back to let you know that I have also installed the lxde desktop and I was able to start an lxde session easily. Since I have posted the first time, I uninstalled openbox, changed my mirror back the main US repo, then reinstalled openbox and I applied all of the current Karmic updates, but I still can't launch an openbox session (or an openbox/gnome session).
Thanks,
James.

Revision history for this message
netgt (netgtt) wrote :
Download full text (3.1 KiB)

I found a same problem when try to login from gdm to openbox session, so after some tries it looked like gdm crashed when gnome-setting-daemon started, it declared in

root@lair:~# cat /etc/xdg/openbox/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; 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
#/bin/bash -c "/usr/bin/hackstart.sh 1>/dev/null 2>/dev/null &"
# 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

I really don't know what they made with gdm, but I fixed it by making some workaround like this:

root@lair:~# cat /etc/xdg/openbox/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; 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
/bin/bash -c "/usr/bin/hackstart.sh 1>/dev/null 2>/dev/null &"
# 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

root@lair:~# cat /usr/bin/hackstart.sh
#!/bin/bash

sleep 30
/usr/bin/gnome-settings-daemon 1>/dev/null 2>/dev/null &
exit 0

It is very bad but i didn't f...

Read more...

Revision history for this message
Daniel González Gasull (gasull) wrote :

I got the exact same problem installing Openbox and also installing Xfce4. It seems that from gdm I can only start a GNOME session.

Revision history for this message
Roland Neary (abcccc) wrote :

By writing

exec openbox-session

in ~/.xinitrc, stopping gdm and manually starting Xorg with startx.gnome-settings-daemon seems to work fine when started this way, and no system files need to be changed. In terms of practicality I guess it's also quite a bad method of logging in....

Changed in openbox (Ubuntu):
status: New → Confirmed
Revision history for this message
Sun Ning (classicning) wrote :

I also got this problem.
Not only gnome-setting-daemon, but also conky has the same problem (which use the sleep method to resolve)

The same configuration works fine in archlinux, so I think it's an ubuntu specified bug.

Revision history for this message
tba967 (tba967) wrote :

I have also gotten openbox-session to launch from GDM. I did so by commenting out everything in /etc/xdg/openbox/autostart.sh

This did not adversely impact the applications I wanted to run from openbox. However, it did make gnome-panel look very bad. I see that the invocation of gnome-settings-daemon described in netgt's hackstart.sh script works. I would be interested to know why.

There is another problem, however, that I cannot figure out: how to get openbox to start with the default 4 virtual desktops. Any ideas?

Revision history for this message
tba967 (tba967) wrote :
Revision history for this message
dancurl@gmail.com (dancurl) wrote :

I'm pretty new to ubuntu and linux in general, but I am also having this problem. Whenever I try to log in with Openbox-session selected in GDM, it just goes back to the login screen after a few seconds. Using Karmic Koala.

Revision history for this message
Paul Taylor (ptptaylor) wrote :

This seems to be reoccurring in Ubuntu 11.04 beta 2 (and I think beta 1 I had the issue).

Revision history for this message
Jean-Christophe Baptiste (jc-baptiste) wrote :

I can confirm that this issue is still present even in 11.04 final.

I just switched to 11.04 from 10.10 and what a deception. Instability, Unity non sense... I wanted my Openbox back, but no way.
Sad to see the same things broken again and again...

Changed in openbox (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.