Bug 487152

Summary: Refuses to run without a session bus
Product: [Fedora] Fedora Reporter: Bastien Nocera <bnocera>
Component: bansheeAssignee: Michel Lind <michel>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 10CC: gnomeuser, michel, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-06 17:13:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bastien Nocera 2009-02-24 15:42:03 UTC
banshee-1.4.2-3.fc10.x86_64

$ banshee-1 

Unhandled Exception: System.Exception: Unable to open the session message bus. ---> System.ArgumentNullException: Argument cannot be null.
Parameter name: address
  at NDesk.DBus.Bus.Open (System.String address) [0x00000] 
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  --- End of inner exception stack trace ---
  at NDesk.DBus.Bus.get_Session () [0x00000] 
  at Banshee.ServiceStack.DBusConnection.get_ApplicationInstanceAlreadyRunning () [0x00000] 
  at Booter.Booter.Main () [0x00000] 

It should maybe print a warning message, but it should run nonetheless.

Comment 1 Michel Lind 2009-02-24 15:57:39 UTC
Could you provide steps to reproduce this? Is dbus not running at all?

<rant>This is why checked exception is actually a good thing</rant>

Comment 2 Bastien Nocera 2009-02-24 17:49:43 UTC
$ unset DBUS_SESSION_BUS_ADDRESS
$ banshee-1

D-Bus isn't running at all, I usually do, for possibly destructive tests:
$ xhost +localhost
$ su tester
<snip>
# banshee-1

This is the same way I test Evolution and rhythmbox when data loss can occur (or I need them to start fast for debugging).

Comment 3 David Nielsen 2009-06-06 17:13:02 UTC
The following upstream commit to master should fix this:

http://git.gnome.org/cgit/banshee/commit/?id=7c92c2a5eb783f4220a4a80d48258d555f83e78a

We can backport the fix if it is felt to be a requirement