/usr/share/help/C/system-admin-guide/dconf-custom-defaults.page is in gnome-user-guide 3.8.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | <page xmlns="http://projectmallard.org/1.0/"
xmlns:its="http://www.w3.org/2005/11/its"
type="topic" style="task"
id="dconf-custom-defaults">
<info>
<link type="guide" xref="index" group="user" />
<link type="seealso" xref="backgrounds-extra" />
<link type="seealso" xref="dconf-profiles" />
<revision pkgversion="3.6" version="0.1" date="2012-05-21" status="draft"/>
<credit type="author copyright">
<name>Ryan Lortie</name>
<email its:translate="no">desrt@desrt.ca</email>
<years>2012</years>
</credit>
<credit type="author copyright">
<name>Jeremy Bicha</name>
<email its:translate="no">jbicha@ubuntu.com</email>
<years>2012</years>
</credit>
<credit type="author copyright">
<name>Jim Campbell</name>
<email its:translate="no">jwcampbell@gmail.com</email>
<years>2012</years>
</credit>
<credit type="editor">
<name>Jana Svarova</name>
<email its:translate="no">jana.svarova@gmail.com</email>
<years>2013</years>
</credit>
<desc>Set system-wide default values using dconf's key file directories</desc>
</info>
<title>Custom default values for system settings</title>
<p>System-wide default values can be set using dconf's <em>key file
directories</em>. Key files contain <em>groups</em> and <em>key-value
pairs</em>.</p>
<p>To demonstrate how dconf key files can be used to set default values,
we'll look at how to use them to set a default wallpaper.</p>
<comment><p>You don't have to use "local" as the profile name. You can even have
different profiles for different users. This isn't mentioned because this
functionality needs something like accountsservice integration to enforce this.
gnome-control-center integration would be great too.</p></comment>
<example>
<list type="numbered">
<title>Set the default wallpaper</title>
<item><p>Create a directory named
<file>/etc/dconf/db/local.d/</file></p></item>
<item><p>From within the <file>profile</file> directory, create and edit a
file named <file>user</file>.</p>
<code>
user-db:user
system-db:local
</code></item>
<item><p>Navigate to the <file>/etc/dconf/db/local.d/</file> directory. If
this directory doesn't exist, you will need to create it.</p>
</item>
<item><p>In the <file>local.d</file> directory, create and edit a
key file named <file>00_default-wallpaper</file>.</p>
<code>
#this portion of the key file identifies the dconf group
[org/gnome/desktop/background]
#these are the individual key-value pairs that are relevant to the key file group
picture-uri='file:///usr/local/share/backgrounds/company-wallpaper.jpg'
picture-options='scaled'
primary-color='000000'
secondary-color='000000'
</code>
</item>
<item>
<p>Update the system databases</p>
<screen> <output style="prompt"># </output>
<input>dconf update</input> </screen>
</item>
</list>
</example>
<p>It is good to know that the <file>/etc/dconf/db/site.d/</file> file is
an alternative for site-wide settings.</p>
<note>
<p>The first time you create a dconf user profile, you'll need to log out
and log in to apply the new profile.</p>
</note>
<note>
<p>
You can include multiple sets of groups and key-value pairs in each key
file, or you can use a separate key file for each group.</p>
</note>
<p>For more in-depth information, see the
<link href="https://live.gnome.org/dconf/SystemAdministrators">
gnome.org</link> website.</p>
</page>
|