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 662766 - Port to GSettings
Port to GSettings
Status: RESOLVED FIXED
Product: gnome-user-share
Classification: Core
Component: general
3.0.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-user-share maintainers
gnome-user-share maintainers
Depends on:
Blocks: 622558
 
 
Reported: 2011-10-26 13:43 UTC by Javier Jardón (IRC: jjardon)
Modified: 2012-08-24 23:39 UTC
See Also:
GNOME target: 3.6
GNOME version: 3.3/3.4


Attachments
Creating the key called bluetooth-enable preference. (1.29 KB, patch)
2012-04-06 00:03 UTC, Julita Inca
none Details | Review
Port to settings (37.77 KB, patch)
2012-06-04 08:01 UTC, L. López
none Details | Review

Description Javier Jardón (IRC: jjardon) 2011-10-26 13:43:57 UTC
Migrating from GConf to GSettings is an official GNOME goal now.

http://live.gnome.org/GnomeGoals/GSettingsMigration
Comment 1 André Klapper 2012-03-06 15:51:53 UTC
Does anybody work on this / will this really happen for 3.4 ("GNOME Target" field) or shall this be postponed to 3.6?
Comment 2 Bastien Nocera 2012-03-06 16:22:00 UTC
Hmm. Not working as expected. Nobody worked on this AFAIK.
Comment 3 Julita Inca 2012-04-05 17:17:46 UTC
André, Bastein, I will take this. I am going to create these keys and its schema:

share-enabled                       org.gnome.desktop.lockdown
require_password                    org.gnome.desktop.lockdown
bluetooth_enabled                   org.gnome.desktop.lockdown
bluetooth_allow_write               org.gnome.desktop.lockdown
bluetooth_require_pairing           org.gnome.desktop.lockdown
bluetooth_obexpush_enabled          org.gnome.desktop.lockdown
bluetooth_accept_files              org.gnome.desktop.lockdown
bluetooth_notify                    org.gnome.desktop.lockdown

Julita
Comment 4 Julita Inca 2012-04-06 00:03:58 UTC
Created attachment 211439 [details] [review]
Creating the key called bluetooth-enable preference.

The schema created was called 'org.gnome.desktop.share.gschema.xml'. It must be stored in '/usr/bin' and must be compiled by doing: glib-compile-schemas.
This is its content:

<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="gsettings-desktop-schemas">
  <schema path="/org/gnome/desktop/share/" id="org.gnome.desktop.share">

    <key type="b" name="bluetooth-enable">
      <default>true</default>
      <summary>Activate Bluetooth</summary>
       <description>Enables sharing trough Bluetooth.</description>
    </key>
  </schema>
</schemalist>
Comment 5 L. López 2012-06-04 08:01:53 UTC
Created attachment 215524 [details] [review]
Port to settings

Since it seems that no progress in this bug, I took a look on it and write this patch.

It's a 1:1 port to GSettings: I didn't took account on lockdown issues, reorganization of keys or other non related stuff.

The patch is pretty straightforward, it took me about 1 hour and the bugzilla was down at that time, because of this I couldn't read any previous comments. Sorry if I stepped on others work.
Comment 6 Matthias Clasen 2012-08-23 17:56:40 UTC
Would be nice to get this in for 3.6, to make the gsettings migration story more complete.
Comment 7 Matthias Clasen 2012-08-24 23:39:06 UTC
This was committed today