Bug 205696

Summary: *.desktop files from symlinked directories are displayed but unusable
Product: [Frameworks and Libraries] kdelibs Reporter: Andreas Beckermann <b_mann>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description Andreas Beckermann 2009-08-30 16:09:36 UTC
Version:            (using KDE 4.3.0)
OS:                Linux
Installed from:    Debian testing/unstable Packages

I have a couple of *.desktop files in ~/.local/share/applications/ that are supposed to show up in the k-menu.

Usually this works, but it fails terribly when the files are in a subdirectory that is symlinked into ~/.local/share/applications.
In that case kbuildsycoca4 picks up all files correctly and displays them in the k-menu in the correct submenus. However when clicking on one of the menu entries *nothing* happens. Not even an error message.


Example:
Create a directory ~/games/ and add a .desktop file ~/games/foo.sh that starts a program.
Now go to ~/.local/share/applications/ and do a ln -s ~/games
 -> after starting kbuildsyscoca4 manually, the foo.sh entry is in the menu. clicking it has no effect at all. not even an error message!


These may actually be two problems:
(1) symlinked directories are traversed, but entries are entirely useless and
(2) if launching the application failes, no error message or feedback of any kind is given to the user.