Version: svn:986516 (using Devel)
Installed from: Compiled sources
On the desktop folderview, when creating links to other folders, the names have a needless ".desktop" extension,
rclick on desktop folder,
Link to location (URL)...
type in e.g ~/Pictures (file name: Pictures)
expected: an icon leading to "~/Pictures", named "Pictures"
got: an icon leading to "~/Pictures" named "Pictures.desktop"
it also happens in dolphin; it's a bug in libkonq.
David: is this the right component for libkonq bugs?
in any case, the problem is in KNewMenu::slotActionTriggered(QAction* action).
if ( KDesktopFile::isDesktopFile( entry.templatePath ) ) is true, and so is if ( df.readType() == "Link" ), and so it appends ".desktop" to the resulting target a few lines later.
Well, that's because it's a desktop file and not a symlink :-)
But yeah, extensions aren't strictly necessary, since we detect files without it too. I found that I added that logic in 2000, (r62771), so things were different back then.
But I think what you really wanted was a symlink. Wish/Bug 66248, basically, no? (although, as discussed there, the problem is that the icon of the symlink cannot be changed)
SVN commit 1016350 by dfaure:
respect the user's wish and don't append .desktop to the filename. Fix will be in 4.3.1
M +0 -2 knewmenu.cpp
WebSVN link: http://websvn.kde.org/?view=rev&revision=1016350