Version: unspecified (using KDE 4.4.3) OS: MS Windows First of all this really is KDE 4.4.4 but the version box didn't provide that option. When using KHNS on windows, the dialog displays fine and I can view deatiled information, previews, everything. When I select to download an item, it even correctly downloads and is stored in the temporary directory (%appdata%\.kde\tmp-342EBFCA2C26439). However, it is never moved to the target directory. Debugview displays the following debug output: [3416] Warning:QFSFileEngine::open: No file name specified [3416] Critical:simon(3416)/knewstuff (api): Cannot move file ' "c:/dokumente und einstellungen/simon/anwendungsdaten/.kde/tmp-342ebfca2c26439/MD3D0xoHiN" ' to destination ' "c:/dokumente und einstellungen/simon/anwendungsdaten/.kde/share/apps/simon/scenarios//123578-amarok.scenario" ' The file "c:/dokumente und einstellungen/simon/anwendungsdaten/.kde/tmp-342ebfca2c26439/MD3D0xoHiN" exists and is really what KNS just downloaded. The target folder exists as well. Reproducible: Always Steps to Reproduce: Open a KNS Dialog Try to download something Actual Results: The download button changes to the busy state for a second but nothing really happens. Expected Results: The item to be installed. As I said above, this is actually KDE 4.4.4.
SVN commit 1159468 by gladhorn: Use KUrl::toLocalFile instead of urlOrPath which should fix installation on windows. backport r1159467 BUG: 241523 M +2 -3 installation.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1159468
This is not yet fixed (for me at least). On line 480 the file is renamed: success = file.rename(QUrl(installpath).toLocalFile()); If I change this to that: success = file.rename(installpath); It installs fine. I added some debug output and am recompiling right now...
Ok there seems to be a problem when using QUrl. I added this debug code: http://pastebin.com/E3NGPfuH Which produces these log messages: http://pastebin.com/VmASWx71 QUrl(installpath).toLocalFile() returns an empty string. Changing success = file.rename(QUrl(installpath).toLocalFile()); to success = file.rename(KUrl(installpath).toLocalFile()); (QUrl -> KUrl) fixes the bug for me. Regards, Peter
Do you have an account? if so please commit your fix. else I can do it.
SVN commit 1175372 by grasch: Bugfix: Copying installed files to target directory was broken on Windows BUG: 241523 M +1 -1 installation.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1175372
Commited and backported to the 4.5 branch. My first commit(s) to the KDE svn :D