After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 509438 - media player keys plugin is causing gnome-settings-daemon to start
media player keys plugin is causing gnome-settings-daemon to start
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Plugins
2.21.x
Other Linux
: High critical
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2008-01-14 18:06 UTC by Frederic Crozat
Modified: 2008-01-16 19:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
don't autostart gnome-settings-daemon (1.46 KB, patch)
2008-01-14 18:07 UTC, Frederic Crozat
committed Details | Review

Description Frederic Crozat 2008-01-14 18:06:09 UTC
When used in desktop environment other than GNOME, starting totem is autostarting gnome-settings-daemon, because of dbus magic in media player keys plugin.

I've prepared a patch which only enable the plugin when gnome-settings-daemon is already running.

There is still an issue with this patch, since it causes an error popup in that particular case for each startup :(
Comment 1 Frederic Crozat 2008-01-14 18:07:02 UTC
Created attachment 102839 [details] [review]
don't autostart gnome-settings-daemon
Comment 2 Bastien Nocera 2008-01-15 10:55:55 UTC
Looks good, please commit to trunk.
Comment 3 Frederic Crozat 2008-01-15 12:46:31 UTC
committed on trunk

2008-01-15  Frederic Crozat  <fcrozat@mandriva.com>

        * src/plugins/media-player-keys/totem-media-player-keys.c:
        Prevent autostarting gnome-settings-daemon, only enable
        plugin if it is running already (Closes: #509438)

I'm keeping this bug open since there is now a error popup for people having this plugin enabled and starting totem not in GNOME.

I guess the popup should not be displayed when plugin activation fails at startup.
Comment 4 Bastien Nocera 2008-01-15 12:48:43 UTC
Change the retval for it then :)
Comment 5 Frederic Crozat 2008-01-15 17:13:36 UTC
Ok, tested here and it works. Do you want to review the patch for this change or shall I commit it directly ? :)
Comment 6 Bastien Nocera 2008-01-15 23:39:43 UTC
(In reply to comment #5)
> Ok, tested here and it works. Do you want to review the patch for this change
> or shall I commit it directly ? :)

You should check the error returned from dbus_g_proxy_new_for_name_owner() and only error out if the error is anything but a failure to find the service.
You can commit directly to SVN, I know you'll have tested it :)
Comment 7 Frederic Crozat 2008-01-16 19:04:18 UTC
Fixed with :

2008-01-16  Frederic Crozat  <fcrozat@mandriva.com>

        * src/plugins/media-player-keys/totem-media-player-keys.c:
        Do not popup error only if gnome-settings-daemon was not
        running (Really closes #509438).