Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 303127 Details for
Bug 443387
Legacy menu items are all over the place...
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
The way I updated to xdg config files to get a cleaner menu
menus.patch (text/plain), 5.67 KB, created by
Toralf
on 2008-04-21 09:55:15 UTC
(
hide
)
Description:
The way I updated to xdg config files to get a cleaner menu
Filename:
MIME Type:
Creator:
Toralf
Created:
2008-04-21 09:55:15 UTC
Size:
5.67 KB
patch
obsolete
>--- ./server-settings.menu.redhat 2007-07-26 19:00:51.000000000 +0200 >+++ ./server-settings.menu 2008-04-02 13:43:11.000000000 +0200 >@@ -6,11 +6,16 @@ > <Name>Server</Name> > <Directory>ServerConfig.directory</Directory> > >- <!-- Scan legacy dirs first, as later items take priority --> >- <LegacyDir>/usr/share/gnome/apps</LegacyDir> >- <LegacyDir>/etc/X11/applnk</LegacyDir> >+ <!-- Scan legacy dirs first, as later items take priority >+ Read the old locations as "normal" directories just to be able to >+ consider items that have the "new" format including a Categories field, >+ but are stored on a "legacy" directory, for inclusion. Scanning these >+ directories as "LegacyDir" would mean including the full legacy menu >+ hierarcy as sub menu of this ("Server Settings") menu, which is >+ obviously not what we want. --> >+ <AppDir>/usr/share/gnome/apps</AppDir> >+ <AppDir>/etc/X11/applnk</AppDir> > >- <!-- Read standard .directory and .desktop file locations --> > <DefaultAppDirs/> > <DefaultDirectoryDirs/> > >--- ./applications.menu.redhat 2008-03-27 16:02:56.000000000 +0100 >+++ ./applications.menu 2008-04-02 15:17:34.000000000 +0200 >@@ -9,12 +9,13 @@ > <!-- Scan legacy dirs first, as later items take priority --> > <LegacyDir>/usr/share/gnome/apps</LegacyDir> > <LegacyDir>/etc/X11/applnk</LegacyDir> >- >+ > <!-- Read standard .directory and .desktop file locations --> > <KDELegacyDirs/> > <DefaultAppDirs/> > <DefaultDirectoryDirs/> > >+ > <!-- Add stock tarball installs to menus --> > <AppDir>/usr/local/share/applications</AppDir> > >@@ -29,12 +30,15 @@ > <Name>Accessories</Name> > <Directory>Accessories.directory</Directory> > <Include> >- <And> >- <Category>Utility</Category> >- <Not> >- <Category>System</Category> >- </Not> >- </And> >+ <Or> >+ <Category>Utilities</Category> >+ <And> >+ <Category>Utility</Category> >+ <Not> >+ <Category>System</Category> >+ </Not> >+ </And> >+ </Or> > </Include> > </Menu> <!-- End Accessories --> > >@@ -183,4 +187,41 @@ > > <MergeFile>applications-kmenuedit.menu</MergeFile> > >+ <!-- Merge some of the menus that may be generated by the above LegacyDir >+ statements with newer counterparts from the explict menu config here --> >+ <Move> >+ <Old>Utilities</Old> >+ <New>Accessories</New> >+ <Old>Applications</Old> >+ <New>Office</New> >+ </Move> >+ <!-- Special hack to get rid of entires on "System" and "Settings" >+ sub directories of directories specified in above LegacyDir statements >+ - since these will usually be merged into other "global" menus specified >+ via separate config files. --> >+ <Menu> >+ <Name>System</Name> >+ <Exclude> >+ <And> >+ <Category>Legacy</Category> >+ </And> >+ </Exclude> >+ </Menu> >+ >+ <Menu> >+ <Name>Settings</Name> >+ <Exclude> >+ <And> >+ <Category>Legacy</Category> >+ </And> >+ </Exclude> >+ </Menu> >+ >+ <!-- Disregard legacy items that are placed on the toplevel >+ (May or may not want this...) --> >+ <Exclude> >+ <And> >+ <Category>Legacy</Category> >+ </And> >+ </Exclude> > </Menu> <!-- End Applications --> >--- ./system-settings.menu.redhat 2007-07-26 19:00:51.000000000 +0200 >+++ ./system-settings.menu 2008-04-02 13:49:35.000000000 +0200 >@@ -6,9 +6,19 @@ > <Name>Administration</Name> > <Directory>SystemConfig.directory</Directory> > >- <!-- Scan legacy dirs first, as later items take priority --> >- <LegacyDir>/usr/share/gnome/apps</LegacyDir> >- <LegacyDir>/etc/X11/applnk</LegacyDir> >+ <!-- Scan legacy dirs first, as later items take priority >+ For each legacy location, the full tree is read as a "normal" directory, >+ and the System sub directory is also read as a "legacy" directory. >+ The net effect is that for an item to be included here, it must either >+ have the "new" format including a Categories field and the appropriate >+ category settings, or be stored under System. Scanning the entire tree >+ as "LegacyDir" would mean including the full legacy menu hierarcy as sub >+ menu of this ("System") menu, which is obviously not what we want. --> >+ <LegacyDir>/usr/share/gnome/apps/System</LegacyDir> >+ <LegacyDir>/etc/X11/applnk/System</LegacyDir> >+ >+ <AppDir>/usr/share/gnome/apps</AppDir> >+ <AppDir>/etc/X11/applnk</AppDir> > > <!-- Read standard .directory and .desktop file locations --> > <DefaultAppDirs/> >--- ./preferences.menu.redhat 2007-07-26 19:00:51.000000000 +0200 >+++ ./preferences.menu 2008-04-02 16:35:09.000000000 +0200 >@@ -5,9 +5,20 @@ > <Name>Preferences</Name> > <Directory>Settings.directory</Directory> > >- <!-- Scan legacy dirs first, as later items take priority --> >- <LegacyDir>/usr/share/gnome/apps</LegacyDir> >- <LegacyDir>/etc/X11/applnk</LegacyDir> >+ <!-- Scan legacy dirs first, as later items take priority >+ For each legacy location, the full tree is read as a "normal" directory, >+ and the Settings sub directory is also read as a "legacy" directory. >+ The net effect is that for an item to be included here, it must either >+ have the "new" format including a Categories field and the appropriate >+ category settings, or be stored under Settings. Scanning the entire >+ tree as "LegacyDir" would mean including the full legacy menu hierarcy >+ as sub menu of this ("Preferences") menu, which is obviously not what >+ we want. --> >+ <LegacyDir>/usr/share/gnome/apps/Settings</LegacyDir> >+ <LegacyDir>/etc/X11/applnk/Settings</LegacyDir> >+ >+ <AppDir>/usr/share/gnome/apps</AppDir> >+ <AppDir>/etc/X11/applnk</AppDir> > > <!-- Read standard .directory and .desktop file locations --> > <DefaultAppDirs/>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 443387
: 303127