summaryrefslogtreecommitdiffstats
path: root/gnome2-system-admin-guide/C/menustructure.xml
blob: 7e761e80c42905fb394c083098150867c344b489 (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
<chapter id="menustructure-0">
  <title>Customizing Menus</title>
  <highlights>
    <para>The information in this chapter describes how the GNOME
Desktop implements menus and how you can customize menus.</para>
  </highlights>
  <sect1 id="menustructure-1">
    <title>Introduction to Menus</title>
    <indexterm>
      <primary>menus</primary>
      <secondary>introduction</secondary>
    </indexterm>
    <para>The way in which the GNOME Desktop implements menus enables you to do
the following:</para>
    <itemizedlist>
      <listitem>
        <para>Customize the menu hierarchy easily. The menu hierarchy is
not based on the file system hierarchy. You can edit a small number of files
to customize the menu hierarchy. You do not need to modify your applications
or move files.</para>
      </listitem>
      <listitem>
        <para>Install applications easily. You do not need to provide information
about the menu hierarchy to applications when you install the applications.</para>
      </listitem>
      <listitem>
        <para>Configure menus so that users cannot modify the menus.</para>
      </listitem>
    </itemizedlist>
    <para>Menus in the GNOME Desktop use the following components:</para>
    <itemizedlist>
      <listitem>
        <para>File abstraction layer</para>
      </listitem>
      <listitem>
        <para>Vfolders</para>
      </listitem>
      <listitem>
        <para>Desktop entry files</para>
      </listitem>
      <listitem>
        <para>Directory entry files</para>
      </listitem>
    </itemizedlist>
  </sect1>
  <sect1 id="menustructure-22">
    <title>File Abstraction Layer</title>
    <indexterm>
      <primary>menus</primary>
      <secondary>file abstraction layer</secondary>
    </indexterm>
    <indexterm>
      <primary>file abstraction layer, and menus</primary>
    </indexterm>
    <para>The <literal>gnome-vfs</literal> file abstraction layer
provides a simplified and generalized way for applications to interact with
files. The file abstraction layer also provides <firstterm>Uniform Resource
Identifier</firstterm> (URI) locations that map to particular menu configuration
files. To add a menu or a menu item for all users, you must add the menu or
menu item to one of the URI locations. <xref linkend="menustructure-TBL-12"/>
lists the menus to which you can add items, and the URI locations that correspond
to the menus.</para>
    <table frame="topbot" id="menustructure-TBL-12">
      <title>Menus and URI Locations</title>
      <tgroup cols="2" colsep="0" rowsep="0">
        <colspec colwidth="50*"/>
        <colspec colwidth="50*"/>
        <thead>
          <row rowsep="1">
            <entry>
              <para>Menu</para>
            </entry>
            <entry>
              <para>URI Locations</para>
            </entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry valign="top">
              <para><guimenu>Applications</guimenu> menu for all
users</para>
            </entry>
            <entry valign="top">
              <para>
                <literal>applications-all-users:///</literal>
              </para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para><guimenu>Desktop Preferences</guimenu> menu for all users</para>
            </entry>
            <entry valign="top">
              <para>
                <literal>preferences-all-users:///</literal>
              </para>
            </entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </sect1>
  <sect1 id="menustructure-13">
    <title>Vfolders and Menus</title>
    <indexterm>
      <primary>menus</primary>
      <secondary>vfolders</secondary>
    </indexterm>
    <indexterm>
      <primary>vfolders</primary>
    </indexterm>
    <para>In general terms,
a <firstterm>vfolder</firstterm> is a virtual representation of items that
reside in a physical location or physical locations on your system. For example,
a vfolder might represent the contents of several directories. A vfolder is
an abstraction from one or more physical locations. In terms of menus in the
GNOME Desktop, a vfolder is a representation in a menu of items that might
be physically located in several directories. </para>
    <para><indexterm><primary>menus</primary><secondary>vfolder information files</secondary></indexterm><indexterm><primary>vfolder information files</primary></indexterm>A <firstterm>vfolder information file</firstterm> is an XML file
that describes a vfolder. Vfolder information files specify the structure
of your menus. Vfolder information files specify the names of your menus,
and the order in which applications appear in your menus. Vfolder information
files have a <filename>.vfolder-info</filename> file extension. </para>
    <para>The following is an excerpt from a vfolder information file:</para>
    <literallayout>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;VFolderInfo&gt;
.
.
.
  &lt;Folder&gt;
    &lt;Name&gt;Applications&lt;/Name&gt;
    &lt;Desktop&gt;Applications.directory&lt;/Desktop&gt;
    &lt;Folder&gt;
      &lt;Name&gt;Accessories&lt;/Name&gt;
      &lt;DontShowIfEmpty/&gt;
      &lt;Desktop&gt;Accessories.directory&lt;/Desktop&gt;
      &lt;Query&gt;
        &lt;And&gt;
          &lt;Keyword&gt;Application&lt;/Keyword&gt;
          &lt;Keyword&gt;Utility&lt;/Keyword&gt;
        &lt;/And&gt;
      &lt;/Query&gt;
    &lt;/Folder&gt;
.
.
.
  &lt;/Folder&gt;
&lt;/VFolderInfo&gt;</literallayout>
    <para><xref linkend="menustructure-TBL-17"/> describes some of the elements
in vfolder information files.</para>
    <table frame="topbot" id="menustructure-TBL-17">
      <title>Vfolder Information File Elements</title>
      <tgroup cols="2" colsep="0" rowsep="0">
        <colspec colname="colspec2" colwidth="33.83*"/>
        <colspec colname="colspec3" colwidth="66.17*"/>
        <thead>
          <row rowsep="1">
            <entry>
              <para>Element</para>
            </entry>
            <entry>
              <para>Description</para>
            </entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry colname="colspec2" valign="top">
              <para>
                <literal>&lt;Folder&gt;</literal>
              </para>
            </entry>
            <entry colname="colspec3" valign="top">
              <para>Contains the elements that define
the name, content, and structure of the menu.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec2" valign="top">
              <para>
                <literal>&lt;Name&gt;</literal>
              </para>
            </entry>
            <entry colname="colspec3" valign="top">
              <para>Specifies the name of the menu.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec2" valign="top">
              <para>
                <literal>&lt;Desktop&gt;</literal>
              </para>
            </entry>
            <entry colname="colspec3" valign="top">
              <para>Specifies the name of the directory
entry file that specifies the name, comment, and icon for the menu.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec2" valign="top">
              <para>
                <literal>&lt;Query&gt;</literal>
              </para>
            </entry>
            <entry colname="colspec3" valign="top">
              <para>Specifies a query to run on desktop
entry files. If a desktop entry file matches the requirements in the query,
the menu item is displayed in the menu. </para>
              <para>The query in the excerpt
searches for desktop entry files that contain the keywords <literal>Application</literal> and <literal>Utility</literal> in the <literal>Categories</literal>
key. Desktop entry files that match are displayed in the <guimenu>Applications</guimenu> menu.</para>
              <para>This element is optional.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec2" valign="top">
              <para>
                <literal>&lt;DontShowIfEmpty/&gt;</literal>
              </para>
            </entry>
            <entry colname="colspec3" valign="top">
              <para>If this
element is present, the menu is not displayed if the menu does not contain
any items.</para>
              <para>This element is optional.</para>
            </entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </sect1>
  <sect1 id="menustructure-6">
    <title>Desktop Entry Files</title>
    <indexterm>
      <primary>desktop entry files</primary>
    </indexterm>
    <indexterm>
      <primary>.desktop files</primary>
      <see>desktop entry files</see>
    </indexterm>
    <para>A <firstterm>desktop entry file</firstterm> is a data file that provides information about
an item in a menu. The desktop entry file specifies the details for the item
such as a name, a command to run, an icon, and so on. The desktop entry file
also contains keywords which determine the location of the item in the menu
hierarchy. Desktop entry files have a <filename>.desktop</filename> file extension.</para>
    <para>The following is a sample desktop entry file:</para>
    <literallayout>[Desktop Entry]
Encoding=UTF-8
Name=Calculator
Comment=Perform calculations
Exec=gcalctool
Icon=gcalctool.png
Terminal=false
Type=Application
Categories=GNOME;Application;Utility;
X-GNOME-DocPath=gcalctool/gcalctool.xml</literallayout>
    <para><xref linkend="menustructure-TBL-7"/> describes the most important keys
in desktop entry files.</para>
    <table frame="topbot" id="menustructure-TBL-7">
      <title>Desktop Entry Keys</title>
      <tgroup cols="2" colsep="0" rowsep="0">
        <colspec colname="colspec0" colwidth="25.25*"/>
        <colspec colname="colspec1" colwidth="74.75*"/>
        <thead>
          <row rowsep="1">
            <entry>
              <para>Desktop Entry Key</para>
            </entry>
            <entry>
              <para>Description</para>
            </entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry valign="top">
              <para>
                <literal>Encoding</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Specifies the encoding of the desktop entry file. </para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>Name</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Specifies the name of the item. This name is displayed
on the item in the menu. </para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>Comment</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Specifies a short description of the item. The comment
is displayed as a tooltip when you point to the item in the menu. </para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>Exec</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Specifies a command to execute when you choose the item
from the menu. </para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>Icon</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies the filename of an
icon that represents the item. Does not specify the path to the filename,
or the file extension. </para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>Terminal</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies whether the command
in the <literal>Exec</literal> key runs in a terminal window. If the value
is <literal>true</literal> the command runs in a terminal window. </para>
              <para>If the command does not create a window in which to run, the value of this
key must be <literal>true</literal>.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>Type</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies the type of item. This
value is one of the following: </para>
              <itemizedlist>
                <listitem>
                  <para><literal>Application</literal>: Enter this option for  an
item that starts an application.</para>
                </listitem>
                <listitem>
                  <para><literal>Link</literal>:  Enter this option for an  item that
links to a file, folder, or FTP site.</para>
                </listitem>
              </itemizedlist>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>Categories</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies the keywords that describe
the item. The keywords are separated with semicolons (;). To see a list of
the standard category keywords, see the desktop menu specification at the
following URL: </para>
              <literallayout>
                <ulink url="http://www.freedesktop.org">http://www.freedesktop.org</ulink>
              </literallayout>
              <para>The vfolder information
files map the keywords to menus.</para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>X-GNOME-DocPath</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies
the help file to display when you choose <guimenuitem>Help on <replaceable>application-name</replaceable></guimenuitem> from the menu item popup menu.</para>
            </entry>
          </row>
        </tbody>
      </tgroup>
    </table>
    <para>For more information on the keys in desktop entry files, see the desktop
entry specification at the following URL: </para>
    <literallayout>
      <ulink url="http://www.freedesktop.org">http://www.freedesktop.org</ulink>
    </literallayout>
    <note>
      <para>Panel launchers and desktop objects also use desktop entry files.
The desktop entry files for launchers and desktop objects provide the same
information as for items in a menu. For example, the desktop entry files provide
the command to run when a user chooses the launcher or object.</para>
    </note>
  </sect1>
  <sect1 id="menustructure-14">
    <title>Directory Entry Files</title>
    <indexterm>
      <primary>directory entry files</primary>
    </indexterm>
    <indexterm>
      <primary>.directory files</primary>
      <see>directory entry files</see>
    </indexterm>
    <para>A <firstterm>directory entry file</firstterm> is a data file that provides
information about a menu. The directory entry file specifies the details for
the menu such as a name, a tooltip, and an icon. Directory entry files have
a <filename>.directory</filename> file extension.</para>
    <para>The following is a sample directory entry file:</para>
    <literallayout>[Desktop Entry]
Name=Accessories
Comment=Accessories menu
Icon=gnome-util.png
Type=Directory</literallayout>
    <para><xref linkend="menustructure-TBL-15"/> describes the most important keys
in directory entry files.</para>
    <table frame="topbot" id="menustructure-TBL-15">
      <title>Directory Entry Keys</title>
      <tgroup cols="2" colsep="0" rowsep="0">
        <colspec colname="colspec0" colwidth="27.07*"/>
        <colspec colname="colspec1" colwidth="72.93*"/>
        <thead>
          <row rowsep="1">
            <entry>
              <para>Directory Entry Key</para>
            </entry>
            <entry>
              <para>Description</para>
            </entry>
          </row>
        </thead>
        <tbody>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>Name</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies the name of the menu.
This name is displayed on the menu. </para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>Comment</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies a short description
of the menu. The comment is displayed as a tooltip when you point to the menu. </para>
            </entry>
          </row>
          <row>
            <entry colname="colspec0" valign="top">
              <para>
                <literal>Icon</literal>
              </para>
            </entry>
            <entry colname="colspec1" valign="top">
              <para>Specifies the filename of an
icon that represents the menu. Does not specify the path to the filename,
or the file extension. </para>
            </entry>
          </row>
          <row>
            <entry valign="top">
              <para>
                <literal>Type</literal>
              </para>
            </entry>
            <entry valign="top">
              <para>Specifies the type of menu. The value of this key is always <literal>Directory</literal>.</para>
            </entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </sect1>
  <sect1 id="menustructure-2">
    <title>Editing Menus</title>
    <indexterm>
      <primary>menus</primary>
      <secondary>editing</secondary>
    </indexterm>
    <para>You use the following GNOME Desktop components to edit menus:</para>
    <itemizedlist>
      <listitem>
        <para><application>Nautilus</application> file manager</para>
      </listitem>
      <listitem>
        <para>Menus on panels</para>
      </listitem>
    </itemizedlist>
    <para>When you use the file manager to add menus or menu items for all users,
you must add the menu or menu item to a URI location. <xref linkend="menustructure-TBL-12"/>
lists the menus to which you can add items, and the URI locations that correspond
to the menus.</para>
    <para>When you use panels to customize menus for all users, you use the menu
item popup menu. For more information, see <citetitle>Working With Menus</citetitle>
in the <citetitle>GNOME 2.6 Desktop User Guide</citetitle>.</para>
    <para>You can also use menu configuration files and menu data files to customize
menus.</para>
    <sect2 id="menustructure-3">
      <title>Adding Menus</title>
      <para>You can add menus for all users in the following ways: </para>
      <itemizedlist>
        <listitem>
          <para>Use the file manager.</para>
        </listitem>
        <listitem>
          <para>Modify the menu configuration files and menu data files.</para>
        </listitem>
      </itemizedlist>
      <sect3 id="menustructure-19">
        <title>To Add a Menu Using the File Manager</title>
        <indexterm>
          <primary>menus</primary>
          <secondary>adding using file manager</secondary>
        </indexterm>
        <indexterm>
          <primary>file manager</primary>
          <secondary>adding menus
with</secondary>
        </indexterm>
        <para>To add a menu for all users, perform the
following steps:</para>
        <orderedlist>
          <listitem>
            <para>In a file manager window, access the location where you want
to add the menu. For example, to add a menu to the <guimenu>Applications</guimenu>
menu, type <literal>applications-all-users:///</literal> in the <guilabel>Location</guilabel> field, then press <keycap>Return</keycap>.</para>
          </listitem>
          <listitem>
            <para>Choose <menuchoice><guimenu>File</guimenu><guimenuitem>New Folder</guimenuitem></menuchoice>. An untitled folder is added to the
view pane. The name of the folder is selected.</para>
          </listitem>
          <listitem>
            <para>Type a name for the folder, then press <keycap>Return</keycap>.
The vfolder information file for the location that you accessed in step 1
is automatically updated with the details of the new menu. The name of the
folder is displayed as the name of the menu.</para>
          </listitem>
        </orderedlist>
        <para>The next time that users log in, the menu is in the assigned location.</para>
      </sect3>
      <sect3 id="menustructure-20">
        <title>To Add a Menu Using Menu Files</title>
        <indexterm>
          <primary>menus</primary>
          <secondary>adding using menu files</secondary>
        </indexterm>
        <para>To add a menu for all users, perform the following steps:</para>
        <orderedlist>
          <listitem>
            <para>Create a directory entry file for the item that you want to
add. Create the directory entry file in the <filename>/usr/share/gnome/vfolders</filename> directory. For more information on directory entry files, see <xref linkend="menustructure-14"/>. </para>
          </listitem>
          <listitem>
            <para>Locate the vfolder information file for the location where
you want to add the menu. For example, to add a menu to the <guimenu>Applications</guimenu> menu, locate the file <filename>/etc/gnome-vfs-2.0/vfolders/applications-all-users.vfolder-info</filename>. </para>
          </listitem>
          <listitem>
            <para>In the vfolder information file, add a <literal>&lt;Folder&gt;</literal> element for the new menu. For more information on vfolder information
files, see <xref linkend="menustructure-13"/>.</para>
          </listitem>
        </orderedlist>
        <para>The next time that users log in, the menu is in the assigned location.</para>
      </sect3>
    </sect2>
    <sect2 id="menustructure-4">
      <title>To Add an Item to a Menu</title>
      <indexterm>
        <primary>menus</primary>
        <secondary>adding items to</secondary>
      </indexterm>
      <para>To add an item to a menu for all users, perform the following
steps:</para>
      <orderedlist>
        <listitem>
          <para>Create a desktop entry file for the item that you want to
add. For more information on desktop entry files, see <xref linkend="menustructure-6"/>. </para>
        </listitem>
        <listitem>
          <para>Open a file manager window. Choose <menuchoice><guimenu>File</guimenu><guimenuitem>New Window</guimenuitem></menuchoice> to open a second
file manager window.</para>
        </listitem>
        <listitem>
          <para>In one window, access the location where you want to add the
menu item. For example, to add a menu item to the <guimenu>Preferences</guimenu>
menu, type <literal>preferences-all-users:///</literal> in the <guilabel>Location</guilabel> field, then press <keycap>Return</keycap>.</para>
        </listitem>
        <listitem>
          <para>In the other window, select the desktop entry file that you
created for the menu item. Drag the desktop entry file to the location where
you want to add the menu item.</para>
          <para>Alternatively, you can copy the desktop entry file, then paste the file
into the location where you want to add the menu item.</para>
        </listitem>
      </orderedlist>
      <para>The next time that users log in, the menu item is in the assigned location.</para>
    </sect2>
    <sect2 id="menustructure-9">
      <title>To Edit the Properties of a Menu</title>
      <indexterm>
        <primary>menus</primary>
        <secondary>editing properties of</secondary>
      </indexterm>
      <para>To edit the properties of a menu for all users, perform
the following steps:</para>
      <orderedlist>
        <listitem>
          <para>From a panel, open the menu that you want to edit. Right-click
on any item in the menu.</para>
        </listitem>
        <listitem>
          <para>Choose <menuchoice><guimenu>Entire menu</guimenu><guimenuitem>Properties</guimenuitem></menuchoice>. A <guilabel>Launcher Properties</guilabel> dialog is displayed.</para>
        </listitem>
        <listitem>
          <para>Modify the properties of the menu in the <guilabel>Launcher Properties</guilabel> dialog. For more information on the elements in the <guilabel>Launcher Properties</guilabel> dialog, see <citetitle>Working With Panels</citetitle> in the <citetitle>GNOME 2.6 Desktop User Guide</citetitle>.</para>
        </listitem>
        <listitem>
          <para>Click <guibutton>OK</guibutton>.</para>
        </listitem>
      </orderedlist>
    </sect2>
    <sect2 id="menustructure-10">
      <title>To Edit a Menu Item</title>
      <indexterm>
        <primary>menus</primary>
        <secondary>editing menu items</secondary>
      </indexterm>
      <para>To edit a menu item, perform the following steps:</para>
      <orderedlist>
        <listitem>
          <para>From a panel, open the menu that contains the item that you
want to edit. Right-click on the item that you want to edit.</para>
        </listitem>
        <listitem>
          <para>Choose <guimenuitem>Properties</guimenuitem>. A <guilabel>Launcher Properties</guilabel> dialog is displayed.</para>
        </listitem>
        <listitem>
          <para>Modify the properties of the menu item in the <guilabel>Launcher Properties</guilabel> dialog. For more information on the elements in the <guilabel>Launcher Properties</guilabel> dialog, see <citetitle>Working With Panels</citetitle> in the <citetitle>GNOME 2.6 Desktop User Guide</citetitle>.</para>
        </listitem>
        <listitem>
          <para>Click <guibutton>OK</guibutton>.</para>
        </listitem>
      </orderedlist>
    </sect2>
    <sect2 id="menustructure-11">
      <title>To Delete an Item from a Menu</title>
      <indexterm>
        <primary>menus</primary>
        <secondary>deleting menu items</secondary>
      </indexterm>
      <para>To delete an item from a menu, from a panel, open the menu
that contains the item that you want to delete. Right-click on the item that
you want to delete. Choose <guimenuitem>Remove this item</guimenuitem>. </para>
      <para>The next time that users log in, the menu item is not displayed in the
menu.</para>
    </sect2>
  </sect1>
  <sect1 id="menustructure-23">
    <title>To Configure Menus That Users Cannot Modify</title>
    <indexterm>
      <primary>menus</primary>
      <secondary>configuring menus that users
cannot modify</secondary>
    </indexterm>
    <para>Users cannot modify a menu if the
following conditions are true:</para>
    <itemizedlist>
      <listitem>
        <para>A vfolder information file that corresponds to the menu is
present in the <filename>/etc/gnome-vfs-2.0/vfolders</filename> directory.</para>
      </listitem>
      <listitem>
        <para>The vfolder information file has the same name as the URI
location that corresponds to the menu.</para>
      </listitem>
      <listitem>
        <para>The user permissions for the vfolder information file are
set to read only. </para>
      </listitem>
    </itemizedlist>
    <para>To configure a menu so that users cannot modify the menu, perform the
following steps:</para>
    <orderedlist>
      <listitem>
        <para>Create a vfolder information file for the menu that you want
to configure in the <filename>/etc/gnome-vfs-2.0/vfolders</filename> directory.</para>
      </listitem>
      <listitem>
        <para>Give the vfolder information file the name of the URI location
that corresponds to the menu that you want to configure. For example, to configure
the <guimenu>Applications</guimenu> menu, create a vfolder information called <filename>applications.vfolder-info</filename> in the <filename>/etc/gnome-vfs-2.0/vfolders</filename> directory.</para>
      </listitem>
      <listitem>
        <para>Set the permissions on the vfolder information file to read
only.</para>
      </listitem>
    </orderedlist>
  </sect1>
</chapter>