Bug 76517 - when creating a link to an URL the name is set to the URL
Summary: when creating a link to an URL the name is set to the URL
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Conectiva RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 76516 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-03-01 17:47 UTC by Gustavo Pichorim Boiko
Modified: 2004-03-30 12:44 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Path to set the name to the filename (998 bytes, patch)
2004-03-01 17:54 UTC, Gustavo Pichorim Boiko
Details
Path to set the name to the filename (998 bytes, patch)
2004-03-01 17:54 UTC, Gustavo Pichorim Boiko
Details

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