Red Hat Bugzilla – Bug 74071
Better way to handle desktop file renames
Last modified: 2007-03-26 23:57:02 EDT
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
(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.
This is a must-fix bug for future milestones.
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.
Has the patch been sent upstream?
*** Bug 76110 has been marked as a duplicate of this bug. ***