Announcement

Collapse
No announcement yet.

New programs not showing up in menu.

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

    New programs not showing up in menu.

    When I install new programs in Kubuntu, they don't show up in the menu. I've recently tried installing Code::Blocks and Opera, and neither of them are appearing. I opened KMenuEdit, and created an entry for Opera, but when I clicked save, the progress bar for saving reset to 0 whenever it reached 90%. The terminal output it gave while saving is this:
    Code:
    kmenuedit(18316)/kdecore (services) KServicePrivate::init: The desktop entry file  "/home/andrew/.local/share/applications/Opera.desktop"  has Type= "Application"  but no Exec line 
    
    Could not resolve property : pattern6664
    Could not resolve property : linearGradient4636
    Could not resolve property : linearGradient4592
    Could not resolve property : linearGradient4247
    Could not resolve property : linearGradient11897
    Could not resolve property : linearGradient11897
    couldn't create image from  "" 
    Could not resolve property : linearGradient5167
    Here is the contents of Opera.desktop:
    Code:
    [Desktop Entry]
    Comment=
    Exec=opera
    GenericName=Web Browser
    Icon=opera-browser
    Name=Opera
    NoDisplay=false
    Path[$e]=
    StartupNotify=true
    Terminal=0
    TerminalOptions=
    Type=Application
    X-KDE-SubstituteUID=false
    X-KDE-Username=
    There is also a /usr/share/applications/opera-browser.desktop that was created automatically during the software installation that looks like this:
    Code:
    [Desktop Entry]
    Type=Application
    Version=1.0
    Name=Opera
    GenericName=Web browser
    GenericName[bs]=Web preglednik
    GenericName[de]=Web-Browser
    GenericName[eo]=TTT-rigardilo
    GenericName[es]=Navegador web
    GenericName[et]=Veebibrauser
    GenericName[eu]=Web arakatzailea
    GenericName[fi]=WWW-selain
    GenericName[fr]=Un navigateur web
    GenericName[is]=Vafri
    GenericName[it]=Browser Web
    GenericName[nb]=Nettleser
    GenericName[nl]=webbrowser
    GenericName[nn]=Nettlesar
    GenericName[pt]=Navegador Web
    GenericName[pt_BR]=Navegador
    GenericName[ro]=Navigator de web
    GenericName[ru]=Веб-браузер
    GenericName[sl]=Spletni brskalnik
    GenericName[ven]=Buronza ya Webu
    GenericName[xh]=Umkhangeli Zincwadi Zokubhaliweyo
    GenericName[zu]=Umkhangeli zincwadi we Web
    Comment=Fast and secure web browser and Internet suite
    Icon=opera-browser
    TryExec=/usr/bin/opera
    Exec=/usr/bin/opera %U
    Terminal=false
    MimeType=text/html;text/xml;application/xhtml+xml;text/vnd.wap.wml;text/wml;application/x-mimearchive;application/mime;application/xml;application/rss+xml;application/rdf+xml;image/svg+xml;application/x-opera-extension;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/mailto;video/ogg;audio/ogg;video/webm;image/webp;
    Categories=Network;WebBrowser;
    StartupNotify=true
    X-AppInstall-Package=opera
    Why aren't these programs appearing in the menu?

    #2
    were these installed with muon?
    have you tryed restarting the box and then checking for them in the menu

    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      The KMenuEdit is editing and saving files to the:

      ~/.config/menus/ . The menu structure is saved to the applications-kmenuedit.menu xml file.
      ~/.local/share/applications/ . The application information is saved to the desktop files.

      If you remove an application in the KMenuEdit then the applications-kmenuedit.menu will have a marking to hide the application
      i.e. the applications-kmenuedit.menu with:
      Code:
       <Menu>
        <Name>.hidden</Name>
        <Include>
         <Filename>avidemux-qt.desktop</Filename>
        </Include>
      Will hide the Avidemux from the menu.

      If the KDE can't read the ~/.config/menus/applications-kmenuedit.menu - a malformed applications-kmenuedit.menu - then it is possible that some application will be missing. A fix is to edit/rename/remove the ~/.config/menus/applications-kmenuedit.menu.
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment


        #4
        My ~/.config/menus/applications-kmenuedit.menu looks like this:
        Code:
        <!DOCTYPE Menu PUBLIC '-//freedesktop//DTD Menu 1.0//EN' 'http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd'>
        <Menu>
         <Menu>
          <Name>Internet</Name>
          <Include>
           <Filename>Opera.desktop</Filename>
           <Filename>Opera-2.desktop</Filename>
          </Include>
          <Layout>
           <Merge type="files"/>
           <Filename>Opera-2.desktop</Filename>
           <Merge type="menus"/>
           <Menuname>Terminal</Menuname>
           <Filename>kde4-akregator.desktop</Filename>
           <Filename>kde4-blogilo.desktop</Filename>
           <Filename>kde4-bluedevil-monolithic.desktop</Filename>
           <Filename>kde4-choqok.desktop</Filename>
           <Filename>firefox.desktop</Filename>
           <Filename>google-chrome.desktop</Filename>
           <Filename>kde4-importwizard.desktop</Filename>
           <Filename>kde4-ktp-contactlist.desktop</Filename>
           <Filename>kde4-ktp-log-viewer.desktop</Filename>
           <Filename>kde4-kget.desktop</Filename>
           <Filename>kde4-KMail2.desktop</Filename>
           <Filename>kde4-KNode.desktop</Filename>
           <Filename>kde4-konqbrowser.desktop</Filename>
           <Filename>kde4-konversation.desktop</Filename>
           <Filename>kde4-kopete.desktop</Filename>
           <Filename>kde4-Kppp.desktop</Filename>
           <Filename>kde4-krdc.desktop</Filename>
           <Filename>kde4-krfb.desktop</Filename>
           <Filename>kde4-ktorrent.desktop</Filename>
           <Filename>kde4-quassel.desktop</Filename>
           <Filename>kde4-rekonq.desktop</Filename>
           <Separator/>
           <Menuname>More</Menuname>
          </Layout>
         </Menu>
        </Menu>
        I think that Opera is in there twice because, after the first time KMenuEdit failed to create it, I tried again. Also, I installed Opera from a .deb file and Code::Blocks from Muon.

        Comment


          #5
          I tried with your applications-kmenuedit.menu - everything seems to work.

          When searching with the "kmenuedit KServicePrivate The desktop entry file has Type= Application but no Exec line" - two hits:

          - https://bugs.kde.org/show_bug.cgi?id=283658
          - https://bugs.kde.org/show_bug.cgi?id=284519

          They are both with the KDE 4.7 but you could check the workarounds. Especially the Bug 284519: kmenuedit silently fails to modify the menu when ~/.local directory file permissions are wrong. Are your directories owned by root or by your username ?



          Have you tried ?

          - How to Ask a Question on the Internet and Get It Answered
          - How To Ask Questions The Smart Way

          Comment

          Working...
          X