Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 346103 - media-video/coherence needs to ship a dbus service description file
Summary: media-video/coherence needs to ship a dbus service description file
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 18:57 UTC by Gilles Dartiguelongue (RETIRED)
Modified: 2012-11-02 22:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-19 18:57:54 UTC
The following file must be created by the ebuild in order for other programs to make use of coherence.

# cat /usr/share/dbus-1/services/org.Coherence.service
[D-BUS Service]
Name=org.Coherence
Exec=/usr/bin/coherence -o use_dbus:yes -o controlpoint:yes

Currently, totem fails to enable the plugin with the following error:

$ totem
Gtk-Message: Failed to load module "pk-gtk-module": libpk-gtk-module.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
Gtk-Message: Failed to load module "gnomebreakpad": libgnomebreakpad.so: Ne peut ouvrir le fichier d'objet partagé: Aucun fichier ou dossier de ce type
** Message: pygobject_register_sinkfunc is deprecated (GtkWindow)
** Message: pygobject_register_sinkfunc is deprecated (GtkInvisible)
** Message: pygobject_register_sinkfunc is deprecated (GtkObject)
Traceback (most recent call last):
  File "/usr/lib64/totem/plugins/coherence_upnp/coherence_upnp.py", line 19, in __init__
    self.ui = TreeWidget()
  File "/usr/lib64/python2.7/site-packages/coherence/ui/av_widgets.py", line 398, in __init__
    self.init_controlpoint()
  File "/usr/lib64/python2.7/site-packages/coherence/ui/av_widgets.py", line 534, in init_controlpoint
    cp = ControlPoint()
  File "/usr/lib64/python2.7/site-packages/coherence/ui/av_widgets.py", line 60, in __new__
    obj._connect(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/coherence/ui/av_widgets.py", line 68, in _connect
    self.coherence = self.bus.get_object(BUS_NAME,OBJECT_PATH)
  File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib64/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib64/python2.7/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib64/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.Coherence was not provided by any .service files

(totem:24351): Totem-WARNING **: Could not instantiate Python object

(totem:24351): Totem-CRITICAL **: totem_plugin_activate: assertion `TOTEM_IS_PLUGIN (plugin)' failed


I found the aforementionned solution on launchpad at:
https://bugs.launchpad.net/ubuntu/+source/coherence/+bug/338963
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-19 19:03:53 UTC
Is that an upstream reference or a ubuntu reference?
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-20 00:37:37 UTC
that's ubuntu. Upstream uses trac for that I guess. In any case I've tested that the proposed indeed fixes the issues I had enabling the totem plugin, and it also works fine as a client/server as expected.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-11-20 01:36:38 UTC
Ok, feel free to add to gentoo. It would be nice to see an upstream reference though. I can get to it in maybe, a week, if no one else does.
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-11-20 23:04:07 UTC
I should visit upstream's irc channel, feel free to remind me if I haven't done it by next week.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-15 22:30:45 UTC
(In reply to comment #4)
> I should visit upstream's irc channel, feel free to remind me if I haven't done
> it by next week.
> 

ping, what's up.
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-12-27 10:30:24 UTC
Asked upstream about this a couple of days ago on their irc channel, got not answer :(
Comment 7 Mehmet Giritli 2011-04-24 16:53:56 UTC
This bug prevents using totem with dlna. Is there a known solution?

Also, I am unable to run rhythmbox with dlna, despite having all the deps installed. I don't get a "shares" source on the left pane. Could this be also related?

Rhythmbox output when run with dlna plugin:

WARN  coherence                   Apr 24 19:51:03  Coherence UPnP framework version 0.6.6.2 starting... (coherence/base.py:283)
WARN  webserver                   Apr 24 19:51:03  WebServer on port 48611 ready (coherence/base.py:124)
WARN  rb_coherence_plugin         Apr 24 19:51:03  Media Store available with UUID uuid:14089e2c-388e-4ee8-b0aa-f03f0b3fe633 (coherence/__init__.py:131)
WARN  rb_coherence_plugin         Apr 24 19:51:03  Media Renderer available with UUID uuid:c45e6591-35bc-4d87-abf9-4f7f949d1774 (coherence/__init__.py:165)
WARN  rb_coherence_plugin         Apr 24 19:51:03  start looking for media servers (coherence/__init__.py:168)
WARN  rb_media_store              Apr 24 19:51:05  __init__ MediaStore {'urlbase': 'http://192.168.1.144:48611/14089e2c-388e-4ee8-b0aa-f03f0b3fe633', 'no_thread_needed': True, 'uuid': 'uuid:14089e2c-388e-4ee8-b0aa-f03f0b3fe633', 'plugin': <CoherencePlugin object at 0x2c3f5a0 (RBPlugin at 0x209a0d0)>, 'db': <__main__.RhythmDBTree object at 0x36c7f50 (RhythmDBTree at 0x20e20c0)>, 'version': 2, 'icon': {'url': 'file:///home/mgiritli/.face', 'mimetype': 'image/jpeg', 'depth': '24', 'height': '62', 'width': '50'}} (coherence/MediaStore.py:345)
WARN  rb_media_renderer           Apr 24 19:51:05  __init__ RhythmboxPlayer {'shell': <rb.Shell object at 0x29ca3c0 (RBShell at 0x1f9c220)>, 'no_thread_needed': True, 'uuid': 'uuid:c45e6591-35bc-4d87-abf9-4f7f949d1774', 'urlbase': 'http://192.168.1.144:48611/c45e6591-35bc-4d87-abf9-4f7f949d1774', 'version': 2, 'rb_mediaserver': <coherence.upnp.devices.media_server.MediaServer object at 0x36c5210>, 'icon': {'url': 'file:///home/mgiritli/.face', 'mimetype': 'image/jpeg', 'depth': '24', 'height': '62', 'width': '50'}} (coherence/MediaPlayer.py:40)

(rhythmbox:10660): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
/usr/lib64/python2.6/site-packages/coherence/extern/louie.py:44: UserWarning: extern.louie will soon be deprecated in favor of coherence.dispatcher.
  warnings.warn("extern.louie will soon be deprecated in favor of coherence.dispatcher.")
Comment 8 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-11-02 22:43:19 UTC
All software I had an interest for have switched away from coherence so I'll close this issue now.