Version: (using KDE KDE 3.2.1) Installed from: Conectiva RPMs OS: Linux When I create a new "Link to Location", the name of the desktop file is set to the URL. If I edit its properties, then the name is set to the filename.
Created attachment 4959 [details] Path to set the name to the filename This patch to libkonq/knewmenu.cc fixes this problem. It puts the filename in the Name entry of the desktop file. I think this is the right way to solve this problem.
Created attachment 4960 [details] Path to set the name to the filename This patch to libkonq/knewmenu.cc fixes this problem. It puts the filename in the Name entry of the desktop file. I think this is the right way to solve this problem.
*** Bug 76516 has been marked as a duplicate of this bug. ***
This makes the Name all ugly with %2F stuff. Just leaving the name out actually seems to work better.
CVS commit by waba: Don't put a Name in the .desktop file for a "Link to Location", it will default to the file name just fine and it can't be edited anyway. (BR76517) CCMAIL: coolo@suse.de,76517-done@bugs.kde.org M +0 -1 knewmenu.cc 1.92.2.1 --- kdebase/libkonq/knewmenu.cc #1.92:1.92.2.1 @@ -473,5 +473,4 @@ void KNewMenu::slotResult( KIO::Job * jo kdDebug(1203) << " destURL=" << destURL.path() << " " << " d->m_destPath=" << d->m_destPath << endl; KDesktopFile df( d->m_destPath ); - df.writeEntry( "Name", m_linkURL ); df.writeEntry( "Icon", KProtocolInfo::icon( KURL(m_linkURL).protocol() ) ); df.writePathEntry( "URL", m_linkURL );