Re: Reasonable KDE menu structure?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Jason L Tibbitts III <tibbs@math.uh.edu> writes:
> Is there a simple way to get the KDE menu structure to resemble
> something reasonable instead of hiding all non-Red Hat approved
> applications under "Extras"?  My users are seriously confused about
> having to look in two menu structures for the applications they're
> used to having.  (Yes, I could teach them to use the menu editor, but
> I have hundreds of users to worry about.)
> 

Edit /etc/X11/desktop-menus/applications.menu.

I'll append the per-folder-Extras version. To have no extras at all
just drop all the Extras folder parts and the X-Red-Hat-Base stuff.

Havoc

<?xml version="1.0"?>
<VFolderInfo>

  <!-- where desktop files are supposed to live -->
  <MergeDir>/usr/share/applications</MergeDir>

  <!-- For now, load up the legacy .desktop trees -->
  <MergeDir>/etc/X11/applnk</MergeDir>
  <MergeDir>/usr/share/gnome/apps</MergeDir>
  <MergeDir>/usr/share/applnk</MergeDir>

  <!-- Control panel dirs -->
  <MergeDir>/usr/share/control-center-2.0/capplets/</MergeDir>
  <MergeDir>/usr/share/gnome/capplets</MergeDir>

  <DesktopDir>/usr/share/desktop-menu-files</DesktopDir>

  <!-- Root folder -->
  <Folder>
    <Name>Applications</Name>
    <Desktop>Applications.directory</Desktop>
    <Exclude>gnome-search-tool.desktop</Exclude>

    <Query>
      <And>
        <Keyword>Core</Keyword>
	<Not>
	  <Keyword>Merged</Keyword>
        </Not>
      </And>
    </Query>

    <!-- Accessories -->
    <Folder>
      <Name>Accessories</Name>
      <Desktop>Accessories.directory</Desktop>
      <Query>
	<And>
          <Keyword>X-Red-Hat-Base</Keyword>
	  <Keyword>Application</Keyword>
	  <Keyword>Utility</Keyword>
	  <Not>
	    <Keyword>System</Keyword>
	  </Not>
	</And>
      </Query>

      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>Utility</Keyword>
            <Not>
              <Or>
                <Keyword>System</Keyword>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
          </And>
        </Query>

        <DontShowIfEmpty/>
      </Folder>


    </Folder>

    <!-- Development Tools -->
    <Folder>
      <Name>Programming</Name>
      <Desktop>Development.directory</Desktop>
      <Query>
        <And>
          <Keyword>X-Red-Hat-Base</Keyword>
          <Keyword>Application</Keyword>
	  <Keyword>Development</Keyword>
        </And>
      </Query>
      <Include>emacs.desktop</Include>
      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>Development</Keyword>
            <Not>
              <Or>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
          </And>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Games -->
    <Folder>
      <Name>Games</Name>
      <Desktop>Games.directory</Desktop>
      <Query>
        <And>
          <Keyword>X-Red-Hat-Base</Keyword>
          <Keyword>Application</Keyword>
	  <Keyword>Game</Keyword>
        </And>
      </Query>
      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>Game</Keyword>
            <Not>
              <Or>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
          </And>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Graphics -->
    <Folder>
      <Name>Graphics</Name>
      <Desktop>Graphics.directory</Desktop>
      <Query>
        <And>
          <Keyword>X-Red-Hat-Base</Keyword>
          <Keyword>Application</Keyword>
	  <Keyword>Graphics</Keyword>
        </And>
      </Query>
      <Include>dia.desktop</Include>
      <Include>drawing.desktop</Include>
      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>Graphics</Keyword>
            <Not>
              <Or>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
          </And>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Internet -->
    <Folder>
      <Name>Internet</Name>
      <Desktop>Internet.directory</Desktop>
      <Query>
        <And>
          <Keyword>X-Red-Hat-Base</Keyword>
          <Keyword>Application</Keyword>
	  <Keyword>Network</Keyword>
        </And>
      </Query>

      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>Network</Keyword>
            <Not>
              <Or>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
          </And>
        </Query>

        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Multimedia -->
    <Folder>
      <Name>Multimedia</Name>
      <Desktop>Multimedia.directory</Desktop>
      <Query>
        <And>
          <Keyword>X-Red-Hat-Base</Keyword>
          <Keyword>Application</Keyword>
	  <Keyword>AudioVideo</Keyword>
        </And>
      </Query>

      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>AudioVideo</Keyword>
            <Not>
              <Or>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
          </And>
        </Query>

        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Office -->
    <Folder>
      <Name>Office</Name>
      <Desktop>Office.directory</Desktop>
      <Query>
	<And>
          <Keyword>X-Red-Hat-Base</Keyword>
	  <Keyword>Application</Keyword>
	  <Or>
	    <Keyword>Office</Keyword>
	    <Keyword>Spreadsheet</Keyword>
	    <Keyword>WordProcessor</Keyword>
	    <Keyword>Calendar</Keyword>
	    <Keyword>ProjectManagement</Keyword>
	  </Or>
	</And>
      </Query>

      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Not>
              <Or>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
            <Or>
              <Keyword>Office</Keyword>
              <Keyword>Spreadsheet</Keyword>
              <Keyword>WordProcessor</Keyword>
              <Keyword>Calendar</Keyword>
              <Keyword>ProjectManagement</Keyword>
            </Or>
          </And>
        </Query>

        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Settings -->
    <!-- It's sort of annoying, but you have to keep this in sync
    with preferences.menu -->

    <Folder>
      <Name>Preferences</Name>
      <Desktop>Settings.directory</Desktop>
      <Query>
	<And>
	  <Keyword>Settings</Keyword>
          <Keyword>X-Red-Hat-Base</Keyword>
	  <Not>
	    <Or>
	      <Keyword>Sawfish</Keyword>
	      <Keyword>X-GNOME-Sawfish</Keyword>
	      <Keyword>System</Keyword>
	    </Or>
	  </Not>
	</And>
      </Query>

      <DontShowIfEmpty/>

      <Include>gnome-control-center.desktop</Include>

      <Folder>
        <Name>Database</Name>
        <Desktop>KDE-Database.directory</Desktop>
        <Query>
          <Keyword>X-KDE-Database</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>FileBrowsing</Name>
        <Desktop>KDE-FileBrowsing.directory</Desktop>
        <Query>
          <Keyword>X-KDE-FileBrowsing</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>Help</Name>
        <Desktop>KDE-Help.directory</Desktop>
        <Query>
          <Keyword>X-KDE-Help</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>Information</Name>
        <Desktop>KDE-Information.directory</Desktop>
        <Query>
          <Keyword>X-KDE-Information</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>LookNFeel</Name>
        <Desktop>KDE-LookNFeel.directory</Desktop>
        <Query>
          <Keyword>X-KDE-LookNFeel</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>Network</Name>
        <Desktop>KDE-Network.directory</Desktop>
        <Query>
          <Keyword>X-KDE-Network</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>Peripherals</Name>
        <Desktop>KDE-Peripherals.directory</Desktop>
        <Query>
          <Keyword>X-KDE-Peripherals</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>Personalization</Name>
        <Desktop>KDE-Personalization.directory</Desktop>
        <Query>
          <Keyword>X-KDE-Personalization</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>PowerControl</Name>
        <Desktop>KDE-PowerControl.directory</Desktop>
        <Query>
          <Keyword>X-KDE-PowerControl</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>Sound</Name>
        <Desktop>KDE-Sound.directory</Desktop>
        <Query>
          <Keyword>X-KDE-Sound</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>System</Name>
        <Desktop>KDE-System.directory</Desktop>
        <Query>
          <Keyword>X-KDE-System</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>

      <Folder>
        <Name>WebBrowsing</Name>
        <Desktop>KDE-WebBrowsing.directory</Desktop>
        <Query>
          <Keyword>X-KDE-WebBrowsing</Keyword>
        </Query>
        <DontShowIfEmpty/>
      </Folder>


      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Settings</Keyword>
            <Not>
              <Or>
                <Keyword>Sawfish</Keyword>
                <Keyword>X-GNOME-Sawfish</Keyword>
                <Keyword>System</Keyword>
                <Keyword>Merged</Keyword>
                <Keyword>X-Red-Hat-Base-Only</Keyword>
                <Keyword>X-Red-Hat-Base</Keyword>
              </Or>
            </Not>
          </And>
        </Query>

        <Folder>
          <Name>Sawfish</Name>
          <Desktop>Sawfish.directory</Desktop>
          <Query>
            <And>
              <Keyword>X-GNOME-Sawfish</Keyword>
              <Keyword>Settings</Keyword>
              <Not>
                <Or>
                  <Keyword>System</Keyword>
                  <Keyword>Merged</Keyword>
                  <Keyword>X-Red-Hat-Base-Only</Keyword>
                  <Keyword>X-Red-Hat-Base</Keyword>
                </Or>
              </Not>
            </And>
          </Query>
          <DontShowIfEmpty/>
        </Folder>
        
        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- System Tools-->
    <Folder>
      <Name>System</Name>
      <Desktop>System.directory</Desktop>
      <Query>
	<And>
          <Keyword>X-Red-Hat-Base</Keyword>
	  <Keyword>Application</Keyword>
	  <Keyword>System</Keyword>
          <Not><Keyword>Screensaver</Keyword></Not>
          <Not><Keyword>X-Red-Hat-ServerConfig</Keyword></Not>
          <Not><Keyword>SystemSetup</Keyword></Not>
	</And>
      </Query>

      <Exclude>redhat-authconfig.desktop</Exclude>
      <Exclude>redhat-config-date.desktop</Exclude>
      <Exclude>redhat-config-keyboard.desktop</Exclude>
      <Exclude>redhat-config-language.desktop</Exclude>
      <Exclude>redhat-config-mouse.desktop</Exclude>
      <Exclude>redhat-config-nfs.desktop</Exclude>
      <Exclude>redhat-config-packages.desktop</Exclude>
      <Exclude>redhat-config-rootpassword.desktop</Exclude>
      <Exclude>redhat-config-securitylevel.desktop</Exclude>
      <Exclude>redhat-config-services.desktop</Exclude>
      <Exclude>redhat-config-soundcard.desktop</Exclude>
      <Exclude>redhat-config-users.desktop</Exclude>
      <Exclude>redhat-neat.desktop</Exclude>
      <Exclude>redhat-printconf-gui.desktop</Exclude>
      <Exclude>redhat-rhn-up2date-config.desktop</Exclude>
      <Exclude>redhat-switchdesk.desktop</Exclude>
      <Exclude>redhat-switchmail.desktop</Exclude>
      <Exclude>redhat-switch-printer.desktop</Exclude>

      <DontShowIfEmpty/>

      <Folder>
        <Name>Extras</Name>
        <Desktop>Extras.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>System</Keyword>
            <Not><Keyword>Screensaver</Keyword></Not>
            <Not><Keyword>X-Red-Hat-Base-Only</Keyword></Not>
            <Not><Keyword>X-Red-Hat-Base</Keyword></Not>
            <Not><Keyword>X-Red-Hat-ServerConfig</Keyword></Not>
            <Not><Keyword>SystemSetup</Keyword></Not>
          </And>
        </Query>


        <Exclude>redhat-authconfig.desktop</Exclude>
        <Exclude>redhat-config-date.desktop</Exclude>
        <Exclude>redhat-config-keyboard.desktop</Exclude>
        <Exclude>redhat-config-language.desktop</Exclude>
        <Exclude>redhat-config-mouse.desktop</Exclude>
        <Exclude>redhat-config-nfs.desktop</Exclude>
        <Exclude>redhat-config-packages.desktop</Exclude>
        <Exclude>redhat-config-rootpassword.desktop</Exclude>
        <Exclude>redhat-config-securitylevel.desktop</Exclude>
        <Exclude>redhat-config-services.desktop</Exclude>
        <Exclude>redhat-config-soundcard.desktop</Exclude>
        <Exclude>redhat-config-users.desktop</Exclude>
        <Exclude>redhat-neat.desktop</Exclude>
        <Exclude>redhat-printconf-gui.desktop</Exclude>
        <Exclude>redhat-rhn-up2date-config.desktop</Exclude>
        <Exclude>redhat-switchdesk.desktop</Exclude>
        <Exclude>redhat-switchmail.desktop</Exclude>
        <Exclude>redhat-switch-printer.desktop</Exclude>

        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- System Settings -->
    <Folder>
      <Name>System Settings</Name>
      <Desktop>SystemConfig.directory</Desktop>
      <Query>
	<And>
          <Keyword>X-Red-Hat-Base</Keyword>
	  <Keyword>Application</Keyword>
	  <Keyword>SystemSetup</Keyword>
          <Not><Keyword>X-Red-Hat-ServerConfig</Keyword></Not>
          <Not><Keyword>Screensaver</Keyword></Not>
	</And>
      </Query>

      <Include>redhat-authconfig.desktop</Include>
      <Include>redhat-config-date.desktop</Include>
      <Include>redhat-config-keyboard.desktop</Include>
      <Include>redhat-config-language.desktop</Include>
      <Include>redhat-config-mouse.desktop</Include>
      <Include>redhat-config-nfs.desktop</Include>
      <Include>redhat-config-packages.desktop</Include>
      <Include>redhat-config-rootpassword.desktop</Include>
      <Include>redhat-config-securitylevel.desktop</Include>
      <Include>redhat-config-services.desktop</Include>
      <Include>redhat-config-soundcard.desktop</Include>
      <Include>redhat-config-users.desktop</Include>
      <Include>redhat-neat.desktop</Include>
      <Include>redhat-printconf-gui.desktop</Include>
      <Include>redhat-rhn-up2date-config.desktop</Include>

      <DontShowIfEmpty/>

      <Folder>
        <Name>System Settings</Name>
        <Desktop>SystemConfig.directory</Desktop>
        <Query>
          <And>
            <Keyword>Application</Keyword>
            <Keyword>SystemSetup</Keyword>
            <Not><Keyword>X-Red-Hat-Base-Only</Keyword></Not>
            <Not><Keyword>X-Red-Hat-Base</Keyword></Not>
            <Not><Keyword>X-Red-Hat-ServerConfig</Keyword></Not>
            <Not><Keyword>Screensaver</Keyword></Not>
          </And>
        </Query>

        <Include>redhat-switchdesk.desktop</Include>
        <Include>redhat-switchmail.desktop</Include>
        <Include>redhat-switch-printer.desktop</Include>

        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Server -->
    <Folder>
      <Name>Server</Name>
      <Desktop>ServerConfig.directory</Desktop>
      <Query>
	<And>
          <Keyword>X-Red-Hat-Base</Keyword>
	  <Keyword>Application</Keyword>
          <Keyword>X-Red-Hat-ServerConfig</Keyword>
	</And>
      </Query>

      <DontShowIfEmpty/>

      <Folder>
        <Name>Server</Name>
        <Desktop>ServerConfig.directory</Desktop>
        <Query>
          <And>
            <Not><Keyword>X-Red-Hat-Base-Only</Keyword></Not>
            <Not><Keyword>X-Red-Hat-Base</Keyword></Not>
            <Keyword>Application</Keyword>
            <Keyword>X-Red-Hat-ServerConfig</Keyword>
          </And>
        </Query>

        <DontShowIfEmpty/>
      </Folder>

    </Folder>

    <!-- Documentation -->
    <Folder>
      <Name>Documentation</Name>
      <Desktop>Documentation.directory</Desktop>
      <Query>
	<And>
          <Keyword>X-Red-Hat-Base</Keyword>
	  <Keyword>Documentation</Keyword>
	</And>
      </Query>

      <DontShowIfEmpty/>

      <Folder>
        <Name>Documentation</Name>
        <Desktop>Documentation.directory</Desktop>
        <Query>
          <And>
            <Not><Keyword>X-Red-Hat-Base-Only</Keyword></Not>
            <Not><Keyword>X-Red-Hat-Base</Keyword></Not>
            <Keyword>Documentation</Keyword>
          </And>
        </Query>

        <DontShowIfEmpty/>
      </Folder>

      <DontShowIfEmpty/>

    </Folder>

    <!-- Unclassified dumping ground (everything that shows 
    up in here is a bug) -->
    <Folder>
      <Name>Other</Name>
      <Desktop>Other.directory</Desktop>
      <OnlyUnallocated/>
      <Query>
        <Keyword>Application</Keyword>
      </Query>
      
      <DontShowIfEmpty/>
    </Folder>
    
  </Folder>
</VFolderInfo>



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux