Bug 437890 - rhythmbox --print-playing spawns a second rb
Summary: rhythmbox --print-playing spawns a second rb
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rhythmbox
Version: 8
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Bastien Nocera
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 438711 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-17 22:21 UTC by Dave Jones
Modified: 2015-01-04 22:30 UTC (History)
3 users (show)

Fixed In Version: Current
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-03-28 10:26:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Jones 2008-03-17 22:21:50 UTC
Description of problem:
If I run rhythmbox --print-playing, I get two rb icons in the notification area.
 The rhythmbox-client process never quits, and doesn't print anything to stdout.

The first instance of rb is playing music just fine, and isn't blocking.
The second instance that starts up is fully usable, will play tunes etc, even
whilst the first one continues.

Version-Release number of selected component (if applicable):
rhythmbox-0.11.3-7.fc8

Comment 1 Bastien Nocera 2008-03-18 01:33:55 UTC
Any errors on the command-line? Are you running within a session that has a dbus
daemon running (look for "/bin/dbus-daemon --session" in the process list)

Comment 2 Dave Jones 2008-03-18 21:09:37 UTC
Starting up the first rhythmbox from command line gets me..

(rhythmbox:7527): Rhythmbox-WARNING **: Failed to invoke RequestName: Connection
":1.22" is not allowed to own the service "org.gnome.Rhythmbox" due to SELinux
policy

(rhythmbox:7527): Rhythmbox-WARNING **: Got unhandled reply 52 from RequestName

(rhythmbox:7527): Rhythmbox-WARNING **: Unable to start mDNS browsing: MDNS
service is not running

(rhythmbox:7527): Rhythmbox-WARNING **: Unable to notify network of music
sharing: The avahi MDNS service is not running



Comment 3 Dave Jones 2008-03-18 21:10:20 UTC
hmm, I seem to have two dbus daemons present. is that normal ?

$ ps ax | grep dbus-daemon |  grep session
 1109 ?        Ssl    0:00 /bin/dbus-daemon --fork --print-pid 4 --print-address
7 --session
 7604 ?        S      0:00 /bin/dbus-daemon --fork --print-pid 4 --print-address
7 --session


Comment 4 Dave Jones 2008-03-18 21:11:21 UTC
the second one starts up when I run the rhythmbox-client command.

Comment 5 Bastien Nocera 2008-03-18 22:00:36 UTC
Not normal unless $DBUS_SESSION_BUS_ADDRESS is unset in your session, somehow.
Or SELinux is being a pain.

Comment 6 Bastien Nocera 2008-03-24 18:23:58 UTC
*** Bug 438711 has been marked as a duplicate of this bug. ***

Comment 7 Bastien Nocera 2008-03-24 18:26:18 UTC
What did you change in the SELinux policy in F8 that makes the session D-Bus
reject connections? (Bug 438711 has the full D-Bus error message)

Comment 8 Daniel Walsh 2008-03-25 21:08:55 UTC
Nothing.  Are you seeing AVC messages in /var/log/audit/audit.log?  Does this
work with SELinux in permissive mode.



Comment 9 Bastien Nocera 2008-03-26 11:10:04 UTC
(In reply to comment #8)
> Nothing.  Are you seeing AVC messages in /var/log/audit/audit.log?  Does this
> work with SELinux in permissive mode.

It works in permissive mode (as mentioned in bug 438711).

Dave, Peter, could you please give the full AVC message from the logs when this
happens?

Comment 10 Peter Janakiev 2008-03-26 12:52:48 UTC
Mar 26 14:49:14 localhost dbus: avc:  received setenforce notice (enforcing=1)
Mar 26 14:49:31 localhost dbus: avc:  denied  { acquire_svc } for
service=org.gnome.Rhythmbox spid=21417
scontext=unconfined_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023
tcontext=unconfined_u:system_r:unconfined_t:s0-s0:c0.c1023 tclass=dbus
--
type=USER_AVC msg=audit(1206535944.921:199): user pid=1762 uid=81
auid=4294967295 subj=system_u:system_r:system_dbusd_t:s0 msg='avc:  denied  {
send_msg } for msgtype=method_call interface=org.freedesktop.Avahi.Server
member=GetAPIVersion dest=org.freedesktop.Avahi spid=21521 tpid=1928
scontext=unconfined_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023
tcontext=system_u:system_r:avahi_t:s0 tclass=dbus : exe="/bin/dbus-daemon"
(sauid=81, hostname=?, addr=?, terminal=?)'
type=USER_AVC msg=audit(1206535944.933:200): user pid=1762 uid=81
auid=4294967295 subj=system_u:system_r:system_dbusd_t:s0 msg='avc:  denied  {
send_msg } for msgtype=method_call interface=org.freedesktop.Avahi.Server
member=GetAPIVersion dest=org.freedesktop.Avahi spid=21521 tpid=1928
scontext=unconfined_u:system_r:unconfined_execmem_t:s0-s0:c0.c1023
tcontext=system_u:system_r:avahi_t:s0 tclass=dbus : exe="/bin/dbus-daemon"
(sauid=81, hostname=?, addr=?, terminal=?)'


Comment 11 Dave Jones 2008-03-27 23:52:16 UTC
I can no longer reproduce this since I last rebooted.

Comment 12 Daniel Walsh 2008-03-28 10:26:41 UTC
Fixed in selinux-policy-3.0.8-95.fc8

Comment 13 Bastien Nocera 2008-03-28 16:32:48 UTC
Thanks Dan!


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