summaryrefslogtreecommitdiffstats
path: root/gnome2-system-admin-guide/C/gconf.xml
blob: 32eecdcc66662fe001f076f887e8611af29de750 (plain)
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
<chapter id="gconf-0">
  <title>Using GConf</title>
  <highlights>
    <para>The information in this chapter describes how to use <application>GConf</application> to manage user preferences. This chapter also describes
how to use <application>Configuration Editor</application>.</para>
  </highlights>
  <sect1 id="gconf-1">
    <title>Introducion to GConf</title>
    <indexterm>
      <primary>GConf</primary>
      <secondary>introduction</secondary>
    </indexterm>
    <para><application>GConf</application> simplifies the administration of preferences
for GNOME Desktop users. <application>GConf</application> enables system administrators
to do the following:</para>
    <itemizedlist>
      <listitem>
        <para>Set mandatory values for particular preferences for all users.
In this way, system administrators can control whether users can update particular
preferences.</para>
      </listitem>
      <listitem>
        <para>Set default values for particular preferences for all users. </para>
      </listitem>
      <listitem>
        <para>Use suggested values for preferences that are specified in
definition files for the preferences.</para>
      </listitem>
      <listitem>
        <para>Read documentation on each preference. </para>
      </listitem>
    </itemizedlist>
    <para><application>GConf</application> also notifies applications when a preference
value changes, locally or across a network. In this way, when you change a
preference, all applications that use the preference are immediately updated.</para>
    <para><application>GConf</application> has the following components: </para>
    <itemizedlist>
      <listitem>
        <para>A repository of user preferences. </para>
      </listitem>
      <listitem>
        <para>A daemon, <command>gconfd-2</command>.</para>
      </listitem>
      <listitem>
        <para>A command line tool, <command>gconftool-2</command>.</para>
      </listitem>
    </itemizedlist>
  </sect1>
  <sect1 id="gconf-24">
    <title>GConf Repository</title>
    <indexterm>
      <primary>GConf</primary>
      <secondary>repository</secondary>
    </indexterm>
    <para>Each preference in the <application>GConf</application> repository is
expressed as a key-value pair. A <firstterm>GConf preference key</firstterm>
is an element in the repository that corresponds to an application preference.
For example, the <literal>/apps/gnome-session/options/show_splash_screen</literal>
preference key corresponds to the <guilabel>Show splash screen on login</guilabel>
option in the <application>Sessions</application> preference tool.  The GNOME
Desktop user interface does not contain all of the preference keys in the <application>GConf</application> repository. For example, the <application>Panel</application>
preference tool does not contain an option that corresponds to the <literal>/apps/panel/global/tooltips_enabled</literal> key.</para>
    <para>The repository is structured like a simple hierarchical file system.
The repository contains the following:</para>
    <itemizedlist>
      <listitem>
        <para>Directories that correspond to applications that use the <application>GConf</application> repository. For example, the file system contains the
directory <filename>/apps/metacity</filename>. </para>
      </listitem>
      <listitem>
        <para>Subdirectories that correspond to categories of preferences.
For example, the file system contains the directory <filename>/apps/metacity/general</filename>.</para>
      </listitem>
      <listitem>
        <para>Special files that list the preference keys in the directory,
and contain information about the keys. For example, a file that contains
information about the keys that relate to the HTTP proxy preferences is in
the directory <filename>/system/http_proxy</filename>. </para>
      </listitem>
      <listitem>
        <para>A <filename>/schemas</filename> directory that contains files
that describe all of the preference keys.</para>
      </listitem>
    </itemizedlist>
    <para>Preference keys typically have simple values such as strings, integers,
or lists of strings and integers. The format of the preference key in the
repository depends on the backend module that is used to read the repository.
The following is an example of the <literal>/desktop/gnome/interface/font_name</literal> preference key when an Extensible Markup Language (XML) backend
module is used to read the repository:</para>
    <literallayout>&lt;entry name=&quot;font_name&quot; mtime=&quot;1038323555&quot; muser=&quot;user123&quot; type=&quot;string&quot;&gt;
&lt;stringvalue&gt;Sans 10&lt;/stringvalue&gt;&lt;/entry&gt;</literallayout>
    <note>
      <para>When this guide refers to a preference key, the path to the key
is added to the name of the key. For example, the <literal>font_name</literal>
preference key in the <filename>/desktop/gnome/interface</filename> subdirectory
is referred to as <literal>/desktop/gnome/interface/font_name</literal>.</para>
    </note>
    <sect2 id="gconf-26">
      <title>GConf Configuration Sources</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>configuration sources</secondary>
      </indexterm>
      <para>The <application>GConf</application> repository contains
a series of storage locations that are called <firstterm>configuration sources</firstterm>. The configuration sources are listed in the <firstterm>GConf
path file</firstterm>. The location of the <application>GConf</application>
path file is <filename>/etc/gconf/<replaceable>gconf-version-number</replaceable>/path</filename>. Each user has a path file. The path file specifies the following
information for each configuration source:</para>
      <itemizedlist>
        <listitem>
          <para>The backend module to use to read the repository. </para>
        </listitem>
        <listitem>
          <para>The permissions on the repository.</para>
        </listitem>
        <listitem>
          <para>The location of the repository.</para>
        </listitem>
      </itemizedlist>
      <para>The <application>GConf</application> path file also contains <literal>include</literal> instructions. By default, the contents of the <application>GConf</application> path file are as follows: </para>
      <literallayout>xml:readonly:/etc/gconf/gconf.xml.mandatory
include /etc/gconf/2/local-mandatory.path
include &quot;$(HOME)/.gconf.path&quot;
include /etc/gconf/2/local-defaults.path
xml:readwrite:$(HOME)/.gconf
xml:readonly:/etc/gconf/gconf.xml.defaults</literallayout>
      <para>When <application>GConf</application> searches for a preference value, <application>GConf</application> reads the configuration sources in the order specified
in the path file. The following table describes the configuration sources
in the path file:</para>
      <informaltable frame="topbot">
        <tgroup cols="2" colsep="0" rowsep="0">
          <colspec colwidth="31.29*"/>
          <colspec colwidth="68.71*"/>
          <thead>
            <row rowsep="1">
              <entry>
                <para>Configuration Source</para>
              </entry>
              <entry>
                <para>Description</para>
              </entry>
            </row>
          </thead>
          <tbody>
            <row>
              <entry valign="top">
                <para>Mandatory</para>
              </entry>
              <entry valign="top">
                <para>The permissions on this configuration source are set to read only. Users cannot
overwrite the values in this source, so the preferences in the source are
mandatory.</para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>User</para>
              </entry>
              <entry valign="top">
                <para>This configuration source is stored in the <filename>.gconf</filename> directory
in the home directory of the user. When the user sets a preference, the new
preference information is added to this location. </para>
                <para>You can use
the <application>Configuration Editor</application> to modify the user configuration
source.</para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>Default</para>
              </entry>
              <entry valign="top">
                <para>This configuration source contains the default preference settings.</para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
      <para>The sequence of the configuration sources in the path file ensures that
mandatory preference settings override user preference settings. The sequence
also ensures that user preference settings override default preference settings.
That is, <application>GConf</application> applies preferences in the following
order of priority:</para>
      <orderedlist>
        <listitem>
          <para>Mandatory preferences </para>
        </listitem>
        <listitem>
          <para>User-specified preferences </para>
        </listitem>
        <listitem>
          <para>Default preferences</para>
        </listitem>
      </orderedlist>
      <para>The <literal>include</literal> instructions in the <application>GConf</application> path file enable system administrators to specify other configuration
sources. </para>
      <informaltable frame="topbot">
        <tgroup cols="2" colsep="0" rowsep="0">
          <colspec colwidth="50*"/>
          <colspec colwidth="50*"/>
          <thead>
            <row rowsep="1">
              <entry>
                <para>Included Configuration Source</para>
              </entry>
              <entry>
                <para>Description</para>
              </entry>
            </row>
          </thead>
          <tbody>
            <row>
              <entry valign="top">
                <para>
                  <filename>/etc/gconf/2/local-mandatory.path</filename>
                </para>
              </entry>
              <entry valign="top">
                <para>Use this configuration
source to store mandatory preference values for a particular system.</para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>
                  <filename>$(HOME)/.gconf.path</filename>
                </para>
              </entry>
              <entry valign="top">
                <para>The user specifies the location of  the configuration
source in the home directory, in a file that is called <filename>.gconf.path</filename>.</para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>
                  <filename>/etc/gconf/2/local-defaults.path</filename>
                </para>
              </entry>
              <entry valign="top">
                <para>Use this configuration
source to store default preference values for a particular system.</para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
    </sect2>
    <sect2 id="gconf-27">
      <title>GConf Schemas</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>schemas</secondary>
      </indexterm>
      <indexterm>
        <primary>GConf</primary>
        <secondary>schema keys</secondary>
      </indexterm>
      <indexterm>
        <primary>GConf</primary>
        <secondary>schema objects</secondary>
      </indexterm>
      <indexterm>
        <primary>schemas</primary>
        <secondary>description</secondary>
      </indexterm>
      <indexterm>
        <primary>schemas</primary>
        <secondary>schema keys</secondary>
      </indexterm>
      <indexterm>
        <primary>schemas</primary>
        <secondary>schema objects</secondary>
      </indexterm>
      <para>A <firstterm>GConf schema</firstterm> is a collective term
for a <firstterm>GConf schema key</firstterm> and a <firstterm>GConf schema
object</firstterm>. The following table describes schema keys and schema objects
and the relationship of these items to preference keys:</para>
      <informaltable frame="topbot">
        <tgroup cols="2" colsep="0" rowsep="0">
          <colspec colname="colspec0" colwidth="24.31*"/>
          <colspec colname="colspec1" colwidth="75.69*"/>
          <thead>
            <row rowsep="1">
              <entry>
                <para>Item</para>
              </entry>
              <entry>
                <para>Description</para>
              </entry>
            </row>
          </thead>
          <tbody>
            <row>
              <entry colname="colspec0" valign="top">
                <para>Preference key</para>
              </entry>
              <entry colname="colspec1" valign="top">
                <para>An element in the <application>GConf</application> repository that corresponds to an application preference.</para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>Schema key</para>
              </entry>
              <entry valign="top">
                <para>A key that stores a schema object for a preference key. </para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>Schema object</para>
              </entry>
              <entry valign="top">
                <para>An element in a configuration source that contains information for a preference
key, such as the following:</para>
                <itemizedlist>
                  <listitem>
                    <para>The name of the application that uses the preference key.</para>
                  </listitem>
                  <listitem>
                    <para>The type of value required for the preference key, for example
integer, boolean, and so on.</para>
                  </listitem>
                  <listitem>
                    <para>A default value for the preference key. </para>
                  </listitem>
                  <listitem>
                    <para>Brief documentation on the preference key.</para>
                  </listitem>
                </itemizedlist>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
      <para>The following table gives examples of a preference key, a schema key,
and a schema object:</para>
      <informaltable frame="topbot">
        <tgroup cols="2" colsep="0" rowsep="0">
          <colspec colname="colspec0" colwidth="24.31*"/>
          <colspec colname="colspec1" colwidth="75.69*"/>
          <thead>
            <row rowsep="1">
              <entry>
                <para>Item</para>
              </entry>
              <entry>
                <para>Example</para>
              </entry>
            </row>
          </thead>
          <tbody>
            <row>
              <entry colname="colspec0" valign="top">
                <para>Preference key</para>
              </entry>
              <entry colname="colspec1" valign="top">
                <para>
                  <literal>/desktop/gnome/interface/font_name</literal>
                </para>
              </entry>
            </row>
            <row>
              <entry colname="colspec0" valign="top">
                <para>Schema key</para>
              </entry>
              <entry colname="colspec1" valign="top">
                <para>
                  <literal>/schemas/desktop/gnome/interface/font_name</literal>
                </para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>Schema object</para>
              </entry>
              <entry valign="top">
                <literallayout>&lt;schema&gt;
  &lt;applyto&gt;/desktop/gnome/interface/font_name&lt;/applyto&gt;
  &lt;key&gt;/schemas/desktop/gnome/interface/font_name&lt;/key&gt;
  &lt;owner&gt;gnome&lt;/owner&gt;
  &lt;type&gt;string&lt;/type&gt;
  &lt;default&gt;Sans 10&lt;/default&gt;
  &lt;locale name=&quot;C&quot;&gt;
    &lt;short&gt;Default font&lt;/short&gt;
      &lt;long&gt;Name of the default font used by gtk+.&lt;/long&gt;
  &lt;/locale&gt;
&lt;/schema&gt;</literallayout>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
      <para>You can associate a schema key with a preference key. For example, the
following <literal>/desktop/gnome/interface/font_name</literal> key includes
a schema key:</para>
      <literallayout>&lt;entry name=&quot;font_name&quot; mtime=&quot;1034873859&quot; 
schema=&quot;/schemas/desktop/gnome/interface/font_name&quot;/&gt;</literallayout>
      <para>When you associate a schema key with a preference key, the preference
uses the suggested value that is specified in the schema object of the schema
key. The suggested value is contained in the <literal>&lt;default&gt;</literal>
element in the schema object. By default, all the preference keys in the default
configuration source are associated with schema keys.</para>
      <para>Typically, schemas are stored in the default configuration source. </para>
    </sect2>
    <sect2 id="gconf-2">
      <title>GConf Schema Definition Files</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>schema definition files</secondary>
        <tertiary>introduction</tertiary>
      </indexterm>
      <indexterm>
        <primary>schemas</primary>
        <secondary>schema definition files</secondary>
        <tertiary>introduction</tertiary>
      </indexterm>
      <para>Schemas are generated from <firstterm>schema definition
files</firstterm>. A schema definition file defines the characteristics of
all of the keys in a particular application. Schema definition files have
a <filename>.schemas</filename> extension.</para>
      <para>The schema definition files are included in the <filename>/etc/gconf/schemas</filename> directory. You can use the schema definition files to create a
new configuration source.</para>
      <para>Some schema definition files correspond closely to a part of the GNOME
Desktop user interface. For example, <filename>system_http_proxy.schemas</filename>
corresponds to the <application>Network Proxy</application> preference tool. Other schema definition files contain
preference keys that are not present in the GNOME Desktop user interface.
For example, the <literal>/apps/panel/global/tooltips_enabled</literal> key
is not present in the user interface. </para>
      <para>Some parts of the GNOME Desktop user interface contain preferences that
represent preference keys from more than one schema definition file. For example,
the <application>Keyboard Shortcuts</application> preference tool contains preferences that represent
keys from the <filename>panel-global-config.schemas</filename> and <filename>metacity.schemas</filename> files.</para>
    </sect2>
  </sect1>
  <sect1 id="gconf-25">
    <title>GConf Daemon</title>
    <indexterm>
      <primary>gconfd</primary>
      <see>GConf daemon</see>
    </indexterm>
    <indexterm>
      <primary>GConf</primary>
      <secondary>daemon</secondary>
    </indexterm>
    <para>The <application>GConf</application> daemon is called <command>gconfd-2</command>. The <application>GConf</application> daemon notifies applications when a preference value changes.
For example, you might select to show only icons in toolbars in the <application>Menus &amp; Toolbars</application> preference tool. When you select this option
in the preference tool, the toolbars on all open applications are updated
instantly. The <application>GConf</application> daemon can operate locally,
or across a network.</para>
    <para>An instance of the <application>GConf</application> daemon is started
for each user. The <application>GConf</application> daemon does not have to
deal with complex problems such as authentication and data security. When
the <application>GConf</application> daemon starts, the daemon loads the <application>GConf</application> path file. The <application>GConf</application> daemon
manages all access between applications and the configuration sources.</para>
    <para>When an application requests the value of a preference key, the daemon
searches the configuration sources as follows:</para>
    <orderedlist>
      <listitem>
        <para>Search for the value of the preference key in each configuration
source, in the order specified in the path file. If the value is found, return
the value.</para>
      </listitem>
      <listitem>
        <para>If a value is not found, search for the schema key that corresponds
to the preference key in each configuration source, in the order specified
in the path file.</para>
      </listitem>
      <listitem>
        <para>If the schema key is found, check the value of the schema
key.</para>
      </listitem>
      <listitem>
        <para>If the value of the schema key is a schema object, return
the suggested value in the <literal>&lt;default&gt;</literal> element of the
schema object.</para>
      </listitem>
    </orderedlist>
    <para>The <application>GConf</application> daemon also caches preference key
values. All applications use this cache, so applications only need to access
the configuration sources once.</para>
    <para>To terminate the <application>GConf</application> daemon, run the following
command:</para>
    <para>
      <computeroutput>#</computeroutput>
      <userinput>gconftool-2 --shutdown</userinput>
    </para>
  </sect1>
  <sect1 id="gconf-6">
    <title>GConf Command Line Tool</title>
    <indexterm>
      <primary>gconftool-2</primary>
      <see>GConf command line tool</see>
    </indexterm>
    <indexterm>
      <primary>GConf</primary>
      <secondary>command line tool</secondary>
    </indexterm>
    <para><application>GConf</application> includes a
command line tool, <command>gconftool-2</command>. You can use the <command>gconftool&ndash;2</command> command to perform the following tasks: </para>
    <itemizedlist>
      <listitem>
        <para>Set the values of keys.</para>
      </listitem>
      <listitem>
        <para>Display the values of keys.</para>
      </listitem>
      <listitem>
        <para>Install schemas from schema definition files when you install
an application.</para>
      </listitem>
    </itemizedlist>
    <para>For example, use the following command to display the values of all
keys in the <filename>/desktop/gnome</filename> directory and subdirectories.</para>
    <para>
      <computeroutput>#</computeroutput>
      <userinput>gconftool-2 --recursive-list
/desktop/gnome</userinput>
    </para>
    <para><xref linkend="gconf-TBL-7"/> lists some of the options that you can
use with the <command>gconftool-2</command> command.</para>
    <table frame="topbot" id="gconf-TBL-7">
      <title>gconftool-2 Command Options</title>
      <tgroup cols="2" colsep="0" rowsep="0">
        <colspec colname="colspec0" colwidth="35.52*"/>
        <colspec colname="colspec1" colwidth="64.48*"/>
        <thead>
          <row rowsep="1">
            <entry>
              <para>Option</para>
            </entry>
            <entry>
              <para>Function</para>
            </entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--all-dirs</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Lists all subdirectories in a
directory that you specify.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--all-entries</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Displays the values of all keys
in a directory that you specify.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--config-source=<replaceable>configuration-source</replaceable></literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Use this option with the <literal>--direct</literal> option
to specify a configuration source to use. If you do not specify a configuration
source with this option, the command runs on all configuration sources in
the path file.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--direct</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Use this option with the <literal>--config-source</literal> option to access a configuration source directly.
When you use this option, <application>GConf</application> bypasses the server.
Ensure that the <application>GConf</application> daemon, <command>gconfd-2</command>, is not running before you use this option.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--dump</literal>
              </para>
            </entry>
            <entry colname="colspec1">
              <para>Generates a list that contains all preference
keys in a <application>GConf</application> repository directory that you specify.
The list contains XML descriptions of all the keys. The list is contained
in a <literal>&lt;gconfentryfile&gt;</literal> element. </para>
              <para>For example,
you can redirect the output from this option to generate a file that lists
all keys that are related to your panel configuration. You can use the <literal>--load</literal> option with this file.</para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>--get</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Displays the value of a preference key that you specify.
Also displays the values of the elements in the schema object for a schema
key that you specify.</para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>--help</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Displays a help message about the <command>gconftool-2</command> command, and the options that you can use with the <command>gconftool-2</command> command.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--load=<replaceable>filename</replaceable></literal>
              </para>
            </entry>
            <entry colname="colspec1">
              <para>Use this option to sets the values of preference keys in the current directory
in a configuration source to the values in the file that you specify. The
file that you specify must contain XML descriptions of the keys, in a <literal>&lt;gconfentryfile&gt;</literal> element.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--long-desc=<replaceable>description</replaceable></literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Use this option with the <literal>--set-schema</literal>
option to specify a long description for a schema key. </para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>--makefile-install-rule</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Installs schema definition files to applications.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--owner=<replaceable>owner</replaceable></literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Use this option with the <literal>--set-schema</literal> option to specify
an owner for a schema key. </para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>--recursive-list</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Displays the values of all preference keys in all
subdirectories in a directory that you specify.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--recursive-unset</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Resets
the values of all preference keys, in all subdirectories in a directory, from
the user setting to the setting in the default configuration source.</para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>--set</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Sets the value of a preference key, and writes the value
to the user configuration source. Use the <literal>--type</literal> option
with the <literal>--set</literal> option to specify the data type of the value
that you want to set. For example, the following command sets the value of
the <literal>/apps/gnome-terminal/profiles/Default/background_color</literal>
key in the user configuration source:</para>
              <para>
                <computeroutput>#</computeroutput>
                <userinput>gconftool-2 --set  &quot;/apps/gnome-terminal/profiles/Default/background_color&quot;
--type string &quot;#000000&quot;</userinput>
              </para>
              <para>You can also use the <literal>--direct</literal> option and the <literal>--config-source</literal> option
with the <literal>--set</literal> option to write a value to another configuration
source.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--set-schema</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Sets the value of an attribute
in a schema key, and writes the value to the default configuration source.</para>
              <para>Use the following options with the <literal>--set-schema</literal>
option to specify the attribute that you want to update:</para>
              <itemizedlist>
                <listitem>
                  <para>
                    <literal>--type</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>--short-desc</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>--long-desc</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>--owner</literal>
                  </para>
                </listitem>
              </itemizedlist>
              <para>For example, the following command sets the short description
in the schema key for the <literal>/apps/gnome-terminal/profiles/Default/background_color</literal> key:</para>
              <para>
                <computeroutput>#</computeroutput>
                <userinput>gconftool-2 --set-schema  &quot;/schemas/apps/gnome-terminal/profiles/Default/background_color&quot;
--short-desc &quot;Default  background color of terminal&quot;</userinput>
              </para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--short-desc=<replaceable>description</replaceable></literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Use this option with the <literal>--set-schema</literal>
option to specify a short description for a schema key. </para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--shutdown</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Terminates the <application>GConf</application> daemon.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--type=<replaceable>data-type</replaceable></literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Use this option to specify the data type when you set a
value of a preference key. You can also use this option when you set the value
of an attribute in a schema key. The following is a list of valid data types:</para>
              <itemizedlist>
                <listitem>
                  <para>
                    <literal>bool</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>float</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>int</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>list</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>pair</literal>
                  </para>
                </listitem>
                <listitem>
                  <para>
                    <literal>string</literal>
                  </para>
                </listitem>
              </itemizedlist>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--unset</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Resets the value of a preference
key from the user setting to the setting in the default configuration source.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>--usage</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Displays a brief help message
about the <command>gconftool-2</command> command, and the options that you
can use with the <command>gconftool-2</command> command.</para>
            </entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </sect1>
  <sect1 id="gconf-7">
    <title>To Set Preference Values</title>
    <indexterm>
      <primary>GConf</primary>
      <secondary>preference values, setting</secondary>
    </indexterm>
    <indexterm>
      <primary>preference values</primary>
      <secondary>setting
with GConf</secondary>
    </indexterm>
    <para>You can set a mandatory value or a
default value for a preference key. Before you change mandatory preference
values or default preference values for users, you must ensure that the <application>GConf</application> daemon is not running for any user. Ensure that all users
are logged out before you change preference values for users.</para>
    <para>To set a mandatory value or a default value for a preference key, use
the <command>gconftool-2</command> command, as follows:</para>
    <para>
      <computeroutput>#</computeroutput>
      <userinput>gconftool-2 --direct --config-source <replaceable>configuration-source</replaceable> --type <replaceable>data-type</replaceable>
--set <replaceable>preference-key</replaceable><replaceable>value</replaceable></userinput>
    </para>
    <para>For example, to set <literal>wwwproxy.xyz.com</literal> as the mandatory
HTTP proxy host, run the following command:</para>
    <para>
      <computeroutput>#</computeroutput>
      <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /system/http_proxy/host
wwwproxy.xyz.com</userinput>
    </para>
    <para>The user cannot override this preference value.</para>
    <para>You can also use the <command>gconftool-2</command> command to set default
values. For example, to set the default number of workspaces to five, run
the following command:</para>
    <para>
      <computeroutput>#</computeroutput>
      <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/metacity/general/num_workspaces
5</userinput>
    </para>
    <para>The user can override this preference value.</para>
    <caution>
      <para>Before you change mandatory preference values or default preference
values for users, you must ensure that all users are logged out.</para>
    </caution>
  </sect1>
  <sect1 id="gconf-8">
    <title>Setting General Preferences</title>
    <para>The following sections describe how to assign mandatory or default values
to general preferences.</para>
    <sect2 id="gconf-10">
      <title>To Set HTTP Proxy Preferences</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>HTTP proxy, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>HTTP proxy</primary>
        <secondary>setting with
GConf</secondary>
      </indexterm>
      <para>To set HTTP proxy preferences, you modify
the values of the preference keys in the <filename>/system/http_proxy/</filename>
location. For example, to set a mandatory value for the HTTP proxy host, run
the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /system/http_proxy/host <replaceable>proxy-name</replaceable></userinput>
      </para>
      <para>To set a default value for the HTTP proxy host, run the following command: </para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /system/http_proxy/host <replaceable>proxy-name</replaceable></userinput>
      </para>
      <para>You can also set other HTTP proxy-related preferences. For information
on the other HTTP proxy preferences, see the <filename>system_http_proxy.schemas</filename> schema definition file.</para>
    </sect2>
    <sect2 id="gconf-11">
      <title>To Set Print Manager Preferences</title>
      <para>To set print manager preferences, you modify the values of the preference
keys in the <filename>/apps/gnome-print-manager</filename> location. For example,
if you do not want users to view the print jobs of other users, set a mandatory
value as follows: </para>
      <indexterm>
        <primary>GConf</primary>
        <secondary>print manager, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>print manager</primary>
        <secondary>setting
with GConf</secondary>
      </indexterm>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory
--type bool --set /apps/gnome-print-manager/show_all_jobs false</userinput>
      </para>
      <para>To set a default value for this preference, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /apps/gnome-print-manager/show_all_jobs
false</userinput>
      </para>
      <para>You can also set other print manager preferences. For information on
the other print manager preferences, see the <filename>gnome-print-manager.schemas</filename> schema definition file.</para>
<!--gnome-print-manager isn't in Mercury. Is there a replacement?-->
    </sect2>
    <sect2 id="gconf-12">
      <title>To Set the Number of Workspaces</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>number of workspaces, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>workspaces</primary>
        <secondary>setting number with GConf</secondary>
      </indexterm>
      <para>To set a mandatory
number of workspaces, use the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type int --set /apps/metacity/general/num_workspaces <replaceable>integer</replaceable></userinput>
      </para>
      <para>To set a default number of workspaces, use the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type int --set /apps/metacity/general/num_workspaces <replaceable>integer</replaceable></userinput>
      </para>
      <para>You can also set other window manager preferences. For information on
the other window manager preferences, see the <filename>metacity.schemas</filename>
schema definition file.</para>
    </sect2>
    <sect2 id="gconf-16">
      <title>To Set Keyboard Accessibility Preferences</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>keyboard accessibility, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>keyboard</primary>
        <secondary>setting accessibility preferences with GConf</secondary>
      </indexterm>
      <para>To set keyboard accessibility preferences, you modify the values of the preference
keys in the <filename>/desktop/gnome/accessibility/keyboard</filename> location.
For example, if you want to set a mandatory value so that keyboard accessibility
features are enabled, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /desktop/gnome/accessibility/keyboard/enable
true</userinput>
      </para>
      <para>To set a default value for this preference, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /desktop/gnome/accessibility/keyboard/enable
false</userinput>
      </para>
      <para>You can also set other keyboard accessibility preferences. For information
on the other keyboard accessibility preferences, see the <filename>desktop_gnome_accessibility_keyboard.schemas</filename> schema definition file.</para>
    </sect2>
    <sect2 id="gconf-18">
      <title>To Set Keyboard Shortcut Preferences</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>keyboard shortcuts, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>keyboard</primary>
        <secondary>setting shortcut preferences with GConf</secondary>
      </indexterm>
      <para>To set
keyboard shortcut preferences, you modify the values of preference keys in <filename>/apps/metacity/global_keybindings</filename> location. For example, you might
want users to use only the <keycombo><keycap>Alt</keycap><keycap>F3</keycap></keycombo> keyboard
shortcut to open the <guilabel>Run Application</guilabel> dialog. To set this
mandatory value, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /apps/metacity/global_keybindings
'&lt;Alt&gt;F3'</userinput>
      </para>
      <para>You can also set other keyboard shortcut preferences. For information
on the other keyboard shortcut preferences, see the <filename>metacity.schemas</filename> schema definition file.</para>
    </sect2>
    <sect2 id="gconf-14">
      <title>Setting Panel and Panel Object Preferences</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>panel object preferences, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>GConf</primary>
        <secondary>panel
preferences, setting individual </secondary>
      </indexterm>
      <indexterm>
        <primary>panels</primary>
        <secondary>preferences, individual, setting with GConf</secondary>
      </indexterm>
      <para>The <filename>panel-default-setup.entries</filename> file
specifies the following details of the panels in the GNOME Desktop:</para>
      <itemizedlist>
        <listitem>
          <para>Number of panels.</para>
        </listitem>
        <listitem>
          <para>Types of the panels.</para>
        </listitem>
        <listitem>
          <para>Properties of the panels.</para>
        </listitem>
        <listitem>
          <para>Contents of the panels.</para>
        </listitem>
      </itemizedlist>
      <para>The configuration of individual panels and of panel objects is a complex
task. To configure individual panels and panel objects, you must first understand
the structure of the <filename>panel-default-setup.entries</filename> file.
For more information on the <filename>panel-default-setup.entries</filename>
file, see the next section.</para>
      <para>To set preferences for individual panels and panel objects, you must
set the values of many preferences in a configuration source. The easiest
way to set the values of panel preferences is to use the <literal>gconftool-2</literal> command with the <literal>--dump</literal> and <literal>--load</literal> options. For more information on how to set preferences for panels
and objects on panels, see <xref linkend="gconf-3"/>.</para>
      <sect3 id="gconf-23">
        <title>Specifying Individual Panels and Panel Objects</title>
        <indexterm>
          <primary>GConf</primary>
          <secondary>schema definition files</secondary>
          <tertiary>panel and panel object</tertiary>
        </indexterm>
        <indexterm>
          <primary>schemas</primary>
          <secondary>schema definition files</secondary>
          <tertiary>panel and panel object</tertiary>
        </indexterm>
        <para>The file <filename>panel-default-setup.entries</filename> contains sections that specify panels and panel contents. The <filename>panel-default-setup.entries</filename> file specifies values for schema keys.
The <filename>panel-default-setup.entries</filename> file resides in the <filename>/etc/gconf/schemas</filename> directory. </para>
        <para>The <filename>panel-default-setup.entries</filename> file is structured
as follows:</para>
        <orderedlist>
          <listitem>
            <para>Keys that specify the general structure of panels, applets,
and other panel objects in the GNOME Desktop. The following keys specify the
number of panels, panel objects, and applets that appear in the GNOME Desktop:</para>
            <itemizedlist>
              <listitem>
                <para>
                  <literal>/apps/panel/default_setup/general/toplevel_id_list</literal>
                </para>
              </listitem>
              <listitem>
                <para>
                  <literal>/apps/panel/default_setup/general/object_id_list</literal>
                </para>
              </listitem>
              <listitem>
                <para>
                  <literal>/apps/panel/default_setup/general/applet_id_list</literal>
                </para>
              </listitem>
            </itemizedlist>
            <para>The keys also assign identifiers to each panel, panel object, and applet.
For example, the following sample from <filename>panel-default-setup.entries</filename> specifies that one panel appears in the GNOME Desktop:</para>
            <literallayout>&lt;entry&gt;
      &lt;key&gt;toplevel_id_list&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/general/toplevel_id_list&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;list type=&quot;string&quot;&gt;
          &lt;value&gt;
            &lt;string&gt;bottom_panel&lt;/string&gt;
          &lt;/value&gt;
        &lt;/list&gt;
      &lt;/value&gt;
    &lt;/entry&gt;</literallayout>
            <para>In the <filename>panel-default-setup.entries</filename> file, the identifier <literal>bottom_panel</literal> identifies the bottom edge panel.</para>
          </listitem>
          <listitem>
            <para>Keys that specify the properties of the panels. The panel
property keys are structured as follows:</para>
            <literallayout>/apps/panel/default_setup/toplevels/<replaceable>panel-name</replaceable>/<replaceable>panel-property-key</replaceable></literallayout>
            <para>For example, the key <literal>/apps/panel/default_setup/toplevels/bottom_panel/size</literal> specifies the size of the bottom panel. </para>
          </listitem>
          <listitem>
            <para>Keys that specify the panel objects, the panel object properties,
and the panels in which the objects reside. For example, the following sample
from <filename>panel-default-setup.entries</filename> specifies a <guimenu>Main Menu</guimenu> object at the left side of the bottom panel:</para>
            <literallayout>&lt;entrylist base=&quot;/apps/panel/default_setup/objects/main_menu&quot;&gt;
   &lt;entry&gt;
      &lt;key&gt;object_type&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/object_type&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;string&gt;menu-object&lt;/string&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
    &lt;entry&gt;
      &lt;key&gt;toplevel_id&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/toplevel_id&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;string&gt;bottom_panel&lt;/string&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
    &lt;entry&gt;
      &lt;key&gt;position&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/position&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;int&gt;0&lt;/int&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
.
.
.
  &lt;/entrylist&gt;</literallayout>
          </listitem>
          <listitem>
            <para>Keys that specify the applets, the applet preferences, and
the panels in which the applets reside. For example, the following sample
from <filename>panel-default-setup.entries</filename> specifies the <application>Window List</application> applet, in the bottom panel:</para>
            <literallayout>&lt;entrylist base=&quot;/apps/panel/default_setup/applets/window_list&quot;&gt;
    &lt;entry&gt;
      &lt;key&gt;object_type&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/object_type&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;string&gt;bonobo-applet&lt;/string&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
    &lt;entry&gt;
      &lt;key&gt;toplevel_id&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/toplevel_id&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;string&gt;bottom_panel&lt;/string&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
    &lt;entry&gt;
      &lt;key&gt;position&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/position&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;int&gt;2&lt;/int&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
.
.
.
    &lt;entry&gt;
      &lt;key&gt;bonobo_iid&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/bonobo_iid_type&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;string&gt;OAFIID:GNOME_WindowListApplet&lt;/string&gt;
      &lt;/value&gt;
    &lt;/entry&gt;
  &lt;/entrylist&gt;</literallayout>
            <para>The OAFIID is a unique identifier for an applet. To find the OAFIID
for a particular applet, see the <filename>.server</filename> file for the
applet in the <filename>/usr/lib/bonobo/servers</filename> directory. For
example, the following excerpt from <filename>GNOME_Wncklet_Factory.server</filename> shows the OAFIID for the <application>Window List</application>
applet:</para>
            <literallayout>&lt;oaf_server iid=&quot;OAFIID:GNOME_WindowListApplet&quot; 
type=&quot;factory&quot; location=&quot;OAFIID:GNOME_Wncklet_Factory&quot;&gt;</literallayout>
          </listitem>
        </orderedlist>
      </sect3>
      <sect3 id="gconf-3">
        <title>To Set Preferences for Individual Panels and Panel Objects</title>
        <para>To set the preferences for a panel and the objects on a panel perform
the following steps:</para>
        <orderedlist>
          <listitem>
            <para>Log in to a GNOME session, and configure the panels as required.</para>
          </listitem>
          <listitem>
            <para>Use the <literal>--dump</literal> option with the <literal>gconftool-2</literal> command line tool to generate a file that contains an
XML description of your panel configuration. The <literal>--dump</literal>
option generates a list that contains all preference keys in a <application>GConf</application> repository directory that you specify. </para>
            <para>For example, the following command creates an XML description of the
default panel configuration in a file called <filename>my-panel-setup.entries</filename>:</para>
            <para>
              <computeroutput>#</computeroutput>
              <userinput>gconftool-2 --dump /apps/panel/profiles/default
&gt; my-panel-setup.entries</userinput>
            </para>
          </listitem>
          <listitem>
            <para>Open the <filename>my-panel-setup.entries</filename> file
in a text editor, and modify the file as required.</para>
            <para>For example, you might want to change the location of the desktop entry
files. The following is an excerpt from a file generated with the <literal>--dump</literal> option:</para>
            <literallayout>&lt;entry&gt;
      &lt;key&gt;objects/object_16/launcher_location&lt;/key&gt;
      &lt;schema_key&gt;/schemas/apps/panel/objects/launcher_location&lt;/schema_key&gt;
      &lt;value&gt;
        &lt;string&gt;hadjaha-00adce02f7.desktop&lt;/string&gt;
      &lt;/value&gt;
    &lt;/entry&gt;</literallayout>
            <para>In the sample above, you might want to change the reference to <literal>hadjaha-00adce02f7.desktop</literal> to another desktop entry file that is
available globally.</para>
            <para>When you generate a panel configuration with the <literal>--dump</literal>
option, the positions of the panel objects are absolute positions. You might
want to change the positions of panel objects from absolute positions to relative
positions. The object at the extreme left of a panel has a <literal>position</literal> value of <literal>0</literal>. The next object has a <literal>position</literal> value of <literal>1</literal>, and so on. If you want object
positions to be relative to the right side of the panel, set the value of
the <literal>right_stick</literal> key to <literal>true</literal>. </para>
<!--Give full key name for position.-->
          </listitem>
          <listitem>
            <para>Use the <literal>--load</literal> option with the <literal>gconftool-2</literal> command line tool to set the values of the default configuration
source to the values in the <filename>my-panel-setup.entries</filename> file.
For example, the following command sets the values of the keys in the default
configuration source to the values of the corresponding keys in <filename>my-panel-setup.entries</filename>:</para>
            <para>
              <computeroutput>#</computeroutput>
              <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --load my-panel-setup.entries</userinput>
            </para>
          </listitem>
        </orderedlist>
      </sect3>
    </sect2>
  </sect1>
  <sect1 id="gconf-9">
    <title>Setting Look-and-Feel Preferences</title>
    <para>The following sections describe how to assign mandatory or default values
to look-and-feel preferences.</para>
    <sect2 id="gconf-19">
      <title>To Set Font Preferences</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>fonts, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>fonts</primary>
        <secondary>setting with GConf</secondary>
      </indexterm>
      <para>To set font preferences, you modify the values of two preference
keys. The following table shows the keys to modify, and the part of the user
interface to which the keys correspond:</para>
      <informaltable frame="topbot">
        <tgroup cols="2" colsep="0" rowsep="0">
          <colspec colwidth="50*"/>
          <colspec colwidth="50*"/>
          <thead>
            <row rowsep="1">
              <entry>
                <para>GConf Location</para>
              </entry>
              <entry>
                <para>User
Interface Component</para>
              </entry>
            </row>
          </thead>
          <tbody>
            <row>
              <entry valign="top">
                <para>/desktop/gnome/interface/font_name</para>
              </entry>
              <entry valign="top">
                <para><application>Font</application> preference tool, <guilabel>Application font</guilabel> option</para>
              </entry>
            </row>
            <row>
              <entry valign="top">
                <para>/apps/nautilus/preferences/desktop_font</para>
              </entry>
              <entry valign="top">
                <para><application>Font</application> preference tool, <guilabel>Desktop font</guilabel> option</para>
              </entry>
            </row>
          </tbody>
        </tgroup>
      </informaltable>
      <para>For example, to set <literal>Sans 12</literal> as the mandatory application
font, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/interface/font_name &ldquo;Sans
12&rdquo;</userinput>
      </para>
      <para><indexterm><primary>desktop</primary><secondary>font preferences, setting
with GConf</secondary></indexterm>To set <literal>palatino 12</literal> as
the default desktop object font, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /apps/nautilus/preferences/desktop_font &ldquo;palatino
12&rdquo;</userinput>
      </para>
    </sect2>
    <sect2 id="gconf-20">
      <title>To Set Background Preferences</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>background, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>background</primary>
        <secondary>preferences,
setting with GConf</secondary>
      </indexterm>
      <para>To set preferences for the
desktop background, you modify the values of the preference keys in the <filename>/desktop/gnome/background</filename> location. For example, to set a mandatory
image for the background, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/background/picture_filename <replaceable>filename.png</replaceable></userinput>
      </para>
      <para>To set a default value for this preference, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_filename <replaceable>filename.png</replaceable></userinput>
      </para>
      <para>You can also set other background preferences. For information on the
other background preferences, see the <filename>desktop_gnome_background.schemas</filename> schema definition file.</para>
    </sect2>
    <sect2 id="gconf-21">
      <title>To Set Splash Image Preferences</title>
      <indexterm>
        <primary>GConf</primary>
        <secondary>splash image, setting</secondary>
      </indexterm>
      <indexterm>
        <primary>splash screen</primary>
        <secondary>image, setting
with GConf</secondary>
      </indexterm>
      <para>To set splash image preferences, you
modify the value of the preference keys in the <filename>/apps/gnome-session/options/</filename> location. For example, if you do not want users ever to see a
splash image, set a mandatory value as follows:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.mandatory --type bool --set /apps/gnome-session/options/show_splash_screen
false</userinput>
      </para>
      <para>To set a default value for this preference, run the following command:</para>
      <para>
        <computeroutput>#</computeroutput>
        <userinput>gconftool-2 --direct --config-source
xml:readwrite:/etc/gconf/gconf.xml.defaults --type bool --set /apps/gnome-session/options/show_splash_screen
false</userinput>
      </para>
      <para>You can also set other splash image preferences. For information on
the other splash image preferences, see the <filename>gnome-session.schemas</filename> schema definition file.</para>
    </sect2>
  </sect1>
  <sect1 id="gconf-28">
    <title>To Restore Default Preference Values</title>
    <indexterm>
      <primary>GConf</primary>
      <secondary>restoring default preference
values</secondary>
    </indexterm>
    <indexterm>
      <primary>preference values</primary>
      <secondary>restoring to default with GConf</secondary>
    </indexterm>
    <para>To
restore the default preference values for a user, run the following command:</para>
    <para>
      <computeroutput>#</computeroutput>
      <userinput>gconftool-2 --direct --config-source <replaceable>user-configuration-source</replaceable> --recursive-unset</userinput>
    </para>
    <para>Replace <replaceable>user-configuration-source</replaceable> with the
configuration source in the <filename>.gconf</filename> directory in the home
directory of the user. </para>
    <para>This command resets the values of all preference keys, in all subdirectories,
from the user setting to the setting in the default configuration source.</para>
  </sect1>
</chapter>