Bug 487152 - Refuses to run without a session bus
Summary: Refuses to run without a session bus
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: banshee
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-02-24 15:42 UTC by Bastien Nocera
Modified: 2009-06-06 17:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-06 17:13:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Bugzilla 573050 0 None None None Never

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


Note You need to log in before you can comment on or make changes to this bug.