Hi All, I'm writing a plugin in python for Rhythmbox. I want to use GSettings to record the state of the plugin.
I feel like I should be able to do something like: if source.lookup("org.gnome.rhythmbox.plugins.gutenberg", True): print ("got settings.") else: print("seems like settings are missing. Creating new ones.") self.settings = Gio.Settings.new("org.gnome.rhythmbox.plugins.gutenberg") ... but I can't - and it seems [1] I need to create a schema manually, as root, by copying a file into /usr/share/glib-2.0/schemas/ This feels weird to me: I can install my plug-in as a user, but I can't create a GSetting (that I think my plugin should be using for good hygiene).I imagine I've missed something - and I'd appreciate guidance back to the path. best regards, Richard 1. Using GSettings with Python/PyGObject Using GSettings with Python/PyGObject Example Python program using GSettings with PyGObject in GNOME 3. View on www.micahcarrick.com Preview by Yahoo
_______________________________________________ desktop-devel-list mailing list desktop-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/desktop-devel-list