upstart sessions needs to create upstart cache directory

Bug #1300516 reported by Ryan Lovett
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus (Ubuntu)
Fix Released
High
Stéphane Graber

Bug Description

I was testing 14.04 using XFCE and Xubuntu desktop sessions. After logging users in, they would only be presented with a desktop background and no running session. Their /tmp/.xdc_cache_$USER/upstart/dbus.log showed:

/proc/self/fd/9: 4: /proc/self/fd/9: cannot create /path/to/user/home/.cache/upstart/dbus-session: Directory nonexistent
/proc/self/fd/9: 4: /proc/self/fd/9: cannot create /path/to/user/home/.cache/upstart/dbus-session: Directory nonexistent
/proc/self/fd/9: 4: /proc/self/fd/9: cannot create /path/to/user/home/.cache/upstart/dbus-session: Directory nonexistent

I killed the user sessions, modified /usr/share/upstart/sessions/dbus.conf, and was then able to successfully login.

--- dbus.conf.orig 2014-01-13 14:01:11.000000000 -0800
+++ dbus.conf 2014-03-31 16:57:01.948724000 -0700
@@ -10,6 +10,7 @@
 pre-start script
     DBUS_SESSION_BUS_ADDRESS=unix:abstract=$(mktemp -u /tmp/dbus-XXXXXXXXXX)
     initctl set-env --global DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS
+ if [ ! -d $HOME/.cache/upstart ]; then mkdir -p $HOME/.cache/upstart; fi
     echo "DBUS_SESSION_BUS_ADDRESS=${DBUS_SESSION_BUS_ADDRESS}" >$HOME/.cache/upstart/dbus-session
 end script

Tags: patch trusty
tags: added: patch trusty
Changed in dbus (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in dbus (Ubuntu):
assignee: nobody → Stéphane Graber (stgraber)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dbus - 1.6.18-0ubuntu4

---------------
dbus (1.6.18-0ubuntu4) trusty; urgency=medium

  * Create ~/.cache/upstart if it doesn't already exist.
    Thanks to Ryan Lovett for the patch. (LP: #1300516)
 -- Stephane Graber <email address hidden> Tue, 01 Apr 2014 17:53:17 -0400

Changed in dbus (Ubuntu):
status: Triaged → 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.