[rhythmbox] audioscrobbler: Make sure gsettings schema path ends with a slash



commit 8cf18a39ce33b672306ad56064b7a486b14ae5d4
Author: Kalev Lember <kalevlember gmail com>
Date:   Fri Feb 7 11:25:58 2014 +0100

    audioscrobbler: Make sure gsettings schema path ends with a slash
    
    This fixes criticals complaining about invalid path passed to
    g_settings_new_with_path() at plugin startup.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723839

 plugins/audioscrobbler/rb-audioscrobbler-plugin.c  |    4 ++--
 .../rb-audioscrobbler-profile-page.c               |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c 
b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
index fa1ec88..110f447 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-plugin.c
@@ -106,9 +106,9 @@ rb_audioscrobbler_plugin_init (RBAudioscrobblerPlugin *plugin)
        rb_debug ("RBAudioscrobblerPlugin initialising");
 
        plugin->lastfm_settings = g_settings_new_with_path (AUDIOSCROBBLER_SETTINGS_SCHEMA,
-                                                           AUDIOSCROBBLER_SETTINGS_PATH "/Last.fm");
+                                                           AUDIOSCROBBLER_SETTINGS_PATH "/Last.fm/");
        plugin->librefm_settings = g_settings_new_with_path (AUDIOSCROBBLER_SETTINGS_SCHEMA,
-                                                            AUDIOSCROBBLER_SETTINGS_PATH "/Libre.fm");
+                                                            AUDIOSCROBBLER_SETTINGS_PATH "/Libre.fm/");
 }
 
 static void
diff --git a/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c 
b/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c
index 28a190a..6e9da54 100644
--- a/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c
+++ b/plugins/audioscrobbler/rb-audioscrobbler-profile-page.c
@@ -394,6 +394,7 @@ rb_audioscrobbler_profile_page_constructed (GObject *object)
        /* scrobbler settings */
        scrobbler_settings = g_strconcat (AUDIOSCROBBLER_SETTINGS_PATH "/",
                                          rb_audioscrobbler_service_get_name (page->priv->service),
+                                         "/",
                                          NULL);
        page->priv->settings = g_settings_new_with_path (AUDIOSCROBBLER_SETTINGS_SCHEMA,
                                                         scrobbler_settings);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]