Bug 76517

Summary: when creating a link to an URL the name is set to the URL
Product: [Applications] konqueror Reporter: Gustavo Pichorim Boiko <gustavo.boiko>
Component: generalAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Conectiva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Path to set the name to the filename
Path to set the name to the filename

Description Gustavo Pichorim Boiko 2004-03-01 17:47:03 UTC
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.
Comment 1 Gustavo Pichorim Boiko 2004-03-01 17:54:22 UTC
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.
Comment 2 Gustavo Pichorim Boiko 2004-03-01 17:54:47 UTC
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.
Comment 3 Kai Lahmann 2004-03-01 17:57:47 UTC
*** Bug 76516 has been marked as a duplicate of this bug. ***
Comment 4 Waldo Bastian 2004-03-30 00:37:50 UTC
This makes the Name all ugly with %2F stuff. Just leaving the name out actually seems to work better.
Comment 5 Waldo Bastian 2004-03-30 12:44:09 UTC
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 );