Bug 163738 - krunner recognizes symlinks to directories as executables
Summary: krunner recognizes symlinks to directories as executables
Status: RESOLVED FIXED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-10 22:20 UTC by Stefan Majewsky
Modified: 2008-06-11 19:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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