Announcement

Collapse
No announcement yet.

KDE Menu - You Can Help

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KDE Menu - You Can Help

    Hi,

    I have a REALLY weird problem, but I think any of you can help me. In the process of working on my menus, I managed to kill off

    /etc/xdg/menus

    This is not a good thing.

    I've gotten my KDE Menu back, but Guidance and KControl are now completely empty. I would love to get a copy of your......

    /etc/xdg/menus/KDE-applications.menu

    AND

    anything hiding in

    /etc/xdg/menus/KDE-applications-merged

    Thanks!

    #2
    Re: KDE Menu - You Can Help

    Wow.. According to the website 24 people have viewed this post. Not a single one of these people could be bothered to post a configuration file that is on their computer. If can get one person to toss me the silly files, I think I can get my system working correctly again. For some reason reinstalling kdelibs-data doesn't correct the problem, it has to be done by hand.

    I have the file out of the .deb but it doesn't completely work. I have a KDE Menu again but all of the System Settings Stuff for Guidance / KControl is in the Lost and Found. There must be a script somewhere acting on the default file, but I don't know where it is.

    So, if someone could either post their KDE-applications.menu, etc. or PM me with it I would appreciate it.

    --andy

    Comment


      #3
      Re: KDE Menu - You Can Help

      Here's mine.....

      kde-applications.menu
      <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
      "http://www.freedesktop.org/standards...1.0/menu.dtd">

      <Menu>
      <Name>Applications</Name>
      <Directory>kde-main.directory</Directory>
      <!-- Search the default locations -->
      <KDELegacyDirs/>
      <DefaultAppDirs/>
      <DefaultDirectoryDirs/>
      <DefaultLayout>
      <Merge type="menus"/>
      <Merge type="files"/>
      <Separator/>
      <Menuname>More</Menuname>
      </DefaultLayout>
      <Layout>
      <Merge type="menus"/>
      <Menuname>Applications</Menuname>
      <Merge type="files"/>
      </Layout>

      <Menu>
      <Name>Applications</Name>
      <Directory>kde-unknown.directory</Directory>
      <OnlyUnallocated/>
      <Include>
      <Not>
      <!-- Don't list non-KDE core applications -->
      <And>
      <Category>Core</Category>
      <Not><Category>KDE</Category></Not>
      </And>
      <!-- Don't list SUSE's YaST in here -->
      <Category>X-SuSE-YaST</Category>
      </Not>
      </Include>
      </Menu>
      <Menu>
      <Name>Development</Name>
      <Directory>kde-development.directory</Directory>
      <Menu>
      <Name>X-KDE-KDevelopIDE</Name>
      <Directory>kde-development-kdevelop.directory</Directory>
      <Include>
      <And>
      <Category>Development</Category>
      <Category>X-KDE-KDevelopIDE</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Translation</Name>
      <Directory>kde-development-translation.directory</Directory>
      <Include>
      <And>
      <Category>Development</Category>
      <Category>Translation</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Web Development</Name>
      <Directory>kde-development-webdevelopment.directory</Directory>
      <Include>
      <And>
      <Category>Development</Category>
      <Category>WebDevelopment</Category>
      </And>
      </Include>
      </Menu>
      <Include>
      <And>
      <Category>Development</Category>
      <Not><Category>X-KDE-KDevelopIDE</Category></Not>
      <Not><Category>Translation</Category></Not>
      <Not><Category>WebDevelopment</Category></Not>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Science</Name>
      <Directory>kde-science.directory</Directory>
      <Include>
      <And><!-- Include /any/ Science app which is not an Education app -->
      <Or>
      <Category>Astronomy</Category>
      <Category>Biology</Category>
      <Category>Chemistry</Category>
      <Category>Geology</Category>
      <Category>MedicalSoftware</Category>
      <Category>Physics</Category>
      <Category>Math</Category>
      <Category>Science</Category>
      </Or>
      <Not><Category>Education</Category></Not>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Edutainment</Name>
      <Directory>kde-edutainment.directory</Directory>
      <Menu>
      <Name>Languages</Name>
      <Directory>kde-edu-languages.directory</Directory>
      <Include>
      <And>
      <Category>Education</Category>
      <Or>
      <Category>Languages</Category>
      <Category>X-KDE-Edu-Language</Category>
      </Or>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Mathematics</Name>
      <Directory>kde-edu-mathematics.directory</Directory>
      <Include>
      <And>
      <Category>Education</Category>
      <Category>Math</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Miscellaneous</Name>
      <Directory>kde-edu-miscellaneous.directory</Directory>
      <Include>
      <And>
      <Category>Education</Category>
      <Not>
      <Category>Languages</Category>
      <Category>X-KDE-Edu-Language</Category>
      <Category>Math</Category>
      <Category>Science</Category>
      <Category>Teaching</Category>
      <Category>X-KDE-Edu-Teaching</Category>
      </Not>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Science</Name>
      <Directory>kde-edu-science.directory</Directory>
      <Include>
      <And>
      <Category>Education</Category>
      <Category>Science</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Tools</Name>
      <Directory>kde-edu-tools.directory</Directory>
      <Include>
      <And>
      <Category>Education</Category>
      <Or>
      <Category>Teaching</Category>
      <Category>X-KDE-Edu-Teaching</Category>
      </Or>
      </And>
      </Include>
      </Menu>
      </Menu>
      <Menu>
      <Name>Games</Name>
      <Directory>kde-games.directory</Directory>
      <Menu>
      <Name>Arcade</Name>
      <Directory>kde-games-arcade.directory</Directory>
      <Include>
      <And>
      <Category>Game</Category>
      <Category>ArcadeGame</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Board</Name>
      <Directory>kde-games-board.directory</Directory>
      <Include>
      <And>
      <Category>Game</Category>
      <Category>BoardGame</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Card</Name>
      <Directory>kde-games-card.directory</Directory>
      <Include>
      <And>
      <Category>Game</Category>
      <Category>CardGame</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>Kidsgames</Name>
      <Directory>kde-games-kids.directory</Directory>
      <Include>
      <And>
      <Category>Game</Category>
      <Or>
      <Category>X-KDE-KidsGame</Category>
      <Category>KidsGame</Category>
      </Or>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>TacticStrategy</Name>
      <Directory>kde-games-strategy.directory</Directory>
      <Include>
      <And>
      <Category>Game</Category>
      <Category>StrategyGame</Category>
      </And>
      </Include>
      </Menu>
      <Include>
      <And>
      <Category>Game</Category>
      <Not>
      <Category>ArcadeGame</Category>
      <Category>BoardGame</Category>
      <Category>CardGame</Category>
      <Category>X-KDE-KidsGame</Category>
      <Category>KidsGame</Category>
      <Category>StrategyGame</Category>
      </Not>
      </And>
      </Include>
      <Menu>
      <Name>Toys</Name>
      <Directory>kde-toys.directory</Directory>
      <Include>
      <Category>Amusement</Category>
      </Include>
      </Menu>
      </Menu>
      <Menu>
      <Name>Graphics</Name>
      <Directory>kde-graphics.directory</Directory>
      <Include>
      <And>
      <Category>Graphics</Category>
      <Not><Category>X-KDE-More</Category></Not>
      <Not><Filename>ooo-draw.desktop</Filename></Not>
      </And>
      </Include>
      <Menu>
      <Name>More</Name>
      <Directory>kde-more.directory</Directory>
      <Include>
      <And>
      <Category>Graphics</Category>
      <Category>X-KDE-More</Category>
      </And>
      </Include>
      </Menu>
      </Menu>
      <Menu>
      <Name>Internet</Name>
      <Directory>kde-internet.directory</Directory>
      <Include>
      <And>
      <Category>Network</Category>
      <Not><Category>X-KDE-More</Category></Not>
      </And>
      </Include>
      <Menu>
      <Name>Terminal</Name>
      <Directory>kde-internet-terminal.directory</Directory>
      </Menu>
      <Menu>
      <Name>More</Name>
      <Directory>kde-more.directory</Directory>
      <Include>
      <And>
      <Category>Network</Category>
      <Category>X-KDE-More</Category>
      </And>
      </Include>
      </Menu>
      </Menu>
      <Menu>
      <Name>Multimedia</Name>
      <Directory>kde-multimedia.directory</Directory>
      <Include>
      <And>
      <Category>AudioVideo</Category>
      <Not><Category>X-KDE-More</Category></Not>
      </And>
      </Include>
      <Menu>
      <Name>More</Name>
      <Directory>kde-more.directory</Directory>
      <Include>
      <And>
      <Category>AudioVideo</Category>
      <Category>X-KDE-More</Category>
      </And>
      </Include>
      </Menu>
      </Menu>
      <Menu>
      <Name>Office</Name>
      <Directory>kde-office.directory</Directory>
      <Layout>
      <Merge type="menus"/>
      <Filename>kde-koshell.desktop</Filename>
      <Filename>kde-Kontact.desktop</Filename>
      <Separator/>
      <Filename>kde-kword.desktop</Filename>
      <Filename>kde-kspread.desktop</Filename>
      <Filename>kde-kpresenter.desktop</Filename>
      <Merge type="files"/>
      <Separator/>
      <Menuname>More</Menuname>
      </Layout>
      <Include>
      <And>
      <Category>Office</Category>
      <Not><Category>X-KDE-More</Category></Not>
      </And>
      </Include>
      <Menu>
      <Name>More</Name>
      <Directory>kde-more.directory</Directory>
      <Include>
      <And>
      <Category>Office</Category>
      <Category>X-KDE-More</Category>
      </And>
      </Include>
      </Menu>
      </Menu>
      <Menu>
      <Name>Settingsmenu</Name>
      <Directory>kde-settingsmenu.directory</Directory>
      <Include>
      <Category>Settings</Category>
      </Include>
      </Menu>
      <Menu>
      <Name>System</Name>
      <Directory>kde-system.directory</Directory>
      <Include>
      <And>
      <Category>System</Category>
      <Not><Category>X-KDE-More</Category></Not>
      </And>
      </Include>
      <Menu>
      <Name>More</Name>
      <Directory>kde-more.directory</Directory>
      <Include>
      <And>
      <Category>System</Category>
      <Category>X-KDE-More</Category>
      </And>
      </Include>
      </Menu>
      <Menu>
      <Name>ScreenSavers</Name>
      <Directory>kde-system-screensavers.directory</Directory>
      </Menu>
      <Menu>
      <Name>Terminal</Name>
      <Directory>kde-system-terminal.directory</Directory>
      </Menu>
      </Menu>
      <Menu>
      <Name>Utilities</Name>
      <Directory>kde-utilities.directory</Directory>
      <Include>
      <And>
      <Or>
      <Category>Utility</Category>
      <Category>TextEditor</Category>
      <Category>X-KDE-Utilities-File</Category>
      <Category>X-KDE-Utilities-Desktop</Category>
      <Category>X-KDE-Utilities-Peripherals</Category>
      <Category>X-KDE-Utilities-PIM</Category>
      <Category>Accessibility</Category>
      </Or>
      <Not><Category>X-KDE-More</Category></Not>
      </And>
      </Include>
      <Menu>
      <Name>XUtilities</Name>
      <Directory>kde-utilities-xutils.directory</Directory>
      </Menu>
      <Menu>
      <Name>More</Name>
      <Directory>kde-more.directory</Directory>
      <Include>
      <And>
      <Category>Utility</Category>
      <Category>X-KDE-More</Category>
      </And>
      </Include>
      </Menu>
      </Menu>
      <Include>
      <And>
      <Category>KDE</Category>
      <Category>Core</Category>
      </And>
      </Include>
      <DefaultMergeDirs/>
      <MergeFile>applications-kmenuedit.menu</MergeFile>

      <Menu>
      <Name>Debian</Name>
      <Directory>debian.directory</Directory>
      <MergeFile>debian-menu.menu</MergeFile>
      </Menu>

      </Menu>

      In kde-applications-merged....
      kde-essential.menu
      <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
      "http://www.freedesktop.org/standards...1.0/menu.dtd">

      <Menu>
      <!-- The following menus are hidden by default -->
      <Menu>
      <Name>Settings</Name>
      <Directory>kde-settings.directory</Directory>
      <MergeFile>../kde-settings.menu</MergeFile>
      </Menu>
      <Menu>
      <Name>Information</Name>
      <Directory>kde-information.directory</Directory>
      <MergeFile>../kde-information.menu</MergeFile>
      </Menu>
      <Move>
      <Old>Settings/Information</Old><New>Information</New>
      </Move>
      <Menu>
      <Name>System</Name>
      <Menu>
      <Name>ScreenSavers</Name>
      <Directory>kde-system-screensavers.directory</Directory>
      <MergeFile>../kde-screensavers.menu</MergeFile>
      </Menu>
      </Menu>
      </Menu>

      system-settings-merge.menu
      <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
      "http://www.freedesktop.org/standards...1.0/menu.dtd">

      <Menu>
      <!-- The following menus are hidden by default -->
      <Menu>
      <Name>System Settings</Name>
      <Directory>system-settings.directory</Directory>
      <MergeFile>../system-settings.menu</MergeFile>
      </Menu>
      </Menu>



      Comment


        #4
        Re: KDE Menu - You Can Help

        Thanks!

        With this, and some other help I got form the Ubuntu Forums, I managed to figure it out. KDE uses a VERY complex set of merged .menu files. I only had this one and it's not enough. This file hides in kdelibs-data. But, I'm not sure where the others are kept at or if they are made during installation.

        But, I got it to work again, and I now know more about freedesktop.org menu specifications than I ever wanted to!

        --andy

        Comment

        Working...
        X