Bug 163738

Summary: krunner recognizes symlinks to directories as executables
Product: [Plasma] krunner Reporter: Stefan Majewsky <majewsky>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: christophe
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Stefan Majewsky 2008-06-10 22:20:28 UTC
Version:            (using KDE 4.0.4)
Installed from:    SuSE RPMs

Normally, entering a directory path into KRunner gives the result "Open ~/my/directory with Dolphin (Places)".

For my work, I have a symlink ~/current pointing to a directory buried deeply in my hierarchy. When I enter "~/current" into KRunner, I do not get "Open ~/current with Dolphin (Places)" or "Open ~/dir/to/where/that/link/points with Dolphin (Places)" but "Run ~/current (Command)".
Comment 1 Christophe Marin 2008-06-11 11:16:27 UTC
Confirmed in trunk (kdebase rev. 819366)
Comment 2 Jakub Stachowski 2008-06-11 19:06:58 UTC
SVN commit 819647 by qbast:

checkExecutable should resolve symlinks before checking if target is
executable. Without that symlink to directory is treated as executable
too.
CCBUG: 163738



 M  +9 -5      kernel/kstandarddirs.cpp  
 M  +7 -0      tests/kstandarddirstest.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=819647
Comment 3 Jakub Stachowski 2008-06-11 19:27:08 UTC
SVN commit 819655 by qbast:

If path is a symlink then examine its target.
BUG: 163738


 M  +5 -1      runnercontext.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=819655