Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mateconf_to_gsettings [2012/08/03 12:32]
Stefano Karapetsas [MateConf to GSettings]
mateconf_to_gsettings [2013/01/21 13:12] (current)
Elan Ruusamäe add link to original
Line 1: Line 1:
 ====== MateConf to GSettings ====== ====== MateConf to GSettings ======
  
-  * [[mateconf_to_gsettings_status|Migration status]]+  * [[status:1.6|Migration status]]
  
   * [[http://live.gnome.org/GnomeGoals/GSettingsMigration|GNOME Goal: Gconf to GSettings migration]]   * [[http://live.gnome.org/GnomeGoals/GSettingsMigration|GNOME Goal: Gconf to GSettings migration]]
-  * [[http://developer.gnome.org/gio/stable/ch28.html|GSettings porting guide]]+  * [[http://developer.gnome.org/gio/stable/ch29.html|GSettings porting guide]]
   * [[http://live.gnome.org/dconf|DConf (main GSettings backend)]]   * [[http://live.gnome.org/dconf|DConf (main GSettings backend)]]
  
Line 78: Line 78:
 **Example: An example for using mateconf-gsettings-schema-convert** **Example: An example for using mateconf-gsettings-schema-convert**
  
-Running <code bash>mateconf-gsettings-schema-convert --mateconf --xml --schema-id "org.mate.font-rendering" --output org.mate.font-rendering.gschema.xml destop_mate_font_rendering.schemas</code> on the following //desktop_mate_font_rendering.schemas// file:+Running <code bash>mateconf-gsettings-schema-convert --mateconf --xml --schema-id "org.mate.font-rendering" --output org.mate.font-rendering.gschema.unindented.xml desktop_mate_font_rendering.schemas 
 +xmllint --format org.mate.font-rendering.gschema.unindented.xml > org.mate.font-rendering.gschema.xml</code> on the following //desktop_mate_font_rendering.schemas// file:
  
 <code xml> <code xml>
Line 199: Line 200:
  
 ===== Data conversion ===== ===== Data conversion =====
 +
 +[Copied from [[http://developer.gnome.org/gio/2.28/ch28s07.html|GIO Reference Manual: Data conversion]] and adoped for MATE]
  
 MateConf comes with a GSettings backend that can be used to facility the transition to the GSettings API until you are ready to make the jump to a different backend (most likely dconf). To use it, you need to set the GSETTINGS_BACKEND to 'mateconf', e.g. by using MateConf comes with a GSettings backend that can be used to facility the transition to the GSettings API until you are ready to make the jump to a different backend (most likely dconf). To use it, you need to set the GSETTINGS_BACKEND to 'mateconf', e.g. by using
Line 230: Line 233:
  
 There are some limitations: gsettings-data-convert does not do any transformation of the values. And it does not handle complex MateConf types other than lists of strings or integers. There are some limitations: gsettings-data-convert does not do any transformation of the values. And it does not handle complex MateConf types other than lists of strings or integers.
- 
-Don't forget to require MateConf 2.31.1 or newer in your configure script if you are making use of the MateConf backend or the conversion utility. 
  
 If, as an application developer, you are interested in manually ensuring that gsettings-data-convert has been invoked (for example, to deal with the case where the user is logged in during a distribution upgrade or for non-XDG desktop environments which do not run the command as an autostart) you may invoke it manually during your program initialisation. This is not recommended for all application authors -- it is your choice if this use case concerns you enough. If, as an application developer, you are interested in manually ensuring that gsettings-data-convert has been invoked (for example, to deal with the case where the user is logged in during a distribution upgrade or for non-XDG desktop environments which do not run the command as an autostart) you may invoke it manually during your program initialisation. This is not recommended for all application authors -- it is your choice if this use case concerns you enough.
mateconf_to_gsettings.1343989966.txt.gz · Last modified: 2012/08/03 12:32 by Stefano Karapetsas
 
Recent changes RSS feed Driven by DokuWiki
Hosted by First Colo