Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 74071

Summary: Better way to handle desktop file renames
Product: [Retired] Red Hat Public Beta Reporter: Owen Taylor <otaylor>
Component: kdebaseAssignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: high    
Version: nullCC: chris.ricker, david.c.maurer, hp, pmmm, than
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-09-26 03:49:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Owen Taylor 2002-09-14 17:35:31 UTC
There are possible compatibility concerns about renaming the
KDE desktop files to add the kde- prefix; they are used 
frequently to look up different services using
KService::serviceByDesktopName 
(often via KApplication::startServiceByDesktopName)

The problem is shown by the size of the .dtfix patch that was needed
for kdebase, though, admittedly, most of that is the trivial case
of kcmshell desktop files.

A bit of additional technology would make the renames invisible
to applicaitons using serviceByDesktopName:

the addition of the kde- prefix is done by the desktop-file-install tool.      
            
What it should do, is, at the same time add a X-RedHat-DesktopName             
                                                                               
                                             field with the original name.

Then, make kio/kio/kservice.c:KService::init()                              
use this, if set, to set m_strDesktopEntryName.

Comment 1 Havoc Pennington 2002-09-14 18:13:04 UTC
This is a must-fix bug for future milestones.

Comment 2 Ngo Than 2002-10-08 17:38:43 UTC
3.0.3-10 includes solution B to handle desktop file renames better.

>Solution B: When renaming the desktop files, we always
>do that by prepending "kde-", and we make the
>findServiceByDesktopName try the the name with kde-
>prepended as a fallback from the specified name.

Comment 3 Owen Taylor 2002-10-08 17:49:35 UTC
Has the patch been sent upstream?

Comment 4 Havoc Pennington 2002-12-20 14:56:48 UTC
*** Bug 76110 has been marked as a duplicate of this bug. ***