This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Display Desktop Type Link in Application Launcher Menu

Tags: kde kickoff, application launcher, launcher menu, desktop entry, type link, kde menu, application menu kde kickoff, application launcher, launcher menu, desktop entry, type link, kde menu, application menu kde kickoff, application launcher, launcher menu, desktop entry, type link, kde menu, application menu
(comma "," separated)
webwhammy
Registered Member
Posts
2
Karma
0
OS
Please correct me if I'm wrong, but it seems that the KDE Kickoff Application Launcher doesn't support desktop entries of the link type.

One might say that a link is not an application. Therefore, why should the application launcher support it? One such justification is a web application. The launcher should support links such as http://localhost/phpmyadmin/ which is a web application. As far as I can tell, the current application launcher denies web applications their right to be listed in the application launcher menu. Sure one could work around this, but why should they have to?

What if I want to have a directory entry in the application launcher menu that has an application entry and link entries to my application's wiki,website and bug-url?

If anybody knows that what I'm stating here is false, please give me a hint.

Thank you in advance.

Last edited by webwhammy on Wed Nov 03, 2010 7:08 pm, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which part are you referring to? The favorites section?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
webwhammy
Registered Member
Posts
2
Karma
0
OS
Thank you for your reply. ;D I'm referring to the Applications section of the Kickoff Application Launcher. Following is the configuration I installed which failed to display desktop link entries in the menu:

/usr/share/icons/hicolor/scalable/apps/foo.svg

/usr/share/desktop-directories/foo.directory:
Code: Select all
[Desktop Entry]
Type=Directory
Name=foo
Icon=foo


/usr/share/applications/foo.desktop:
Code: Select all
[Desktop Entry]
Type=Link
Icon=foo
Name=foo
GenericName=A Foo Web Application
Comment=A foo bar web application
URL=http://localhost/foo/


/etc/xdg/menus/applications-merged/foo.menu:
Code: Select all
<!DOCTYPE Menu
  PUBLIC '-//freedesktop//DTD Menu 1.0//EN'
  'http://standards.freedesktop.org/menu-spec/menu-1.0.dtd'>
<Menu>
   <Name>Applications</Name>
   <Menu>
      <Name>Internet</Name>
      <Menu>
         <Name>foo</Name>
         <Directory>foo.directory</Directory>
         <Include>
            <Filename>foo.desktop</Filename>
         </Include>
      </Menu>
   </Menu>
</Menu>


Code: Select all
# desktop-file-install --dir /usr/share/applications foo.desktop && update-desktop-database /usr/share/applications


As soon as I change the foo.desktop file (otherwise, I'm keeping the configuration shown above) to Type=Application and add the required keys for applications, it displays in the Applications->Internet menu. I'm using the information from: http://standards.freedesktop.org/desktop-entry-spec/latest/.

So, do you have any insight as to what I may be doing incorrectly? Or, is my initial guess that the Application Launcher doesn't support desktop type links correct?

Thank you again. 8)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This certainly seems to be the case. I would recommend using "Application" Desktop types, using xdg-open to open the urls.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]