[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#243375: kdelibs-bin: menu-method freedesktop should set the Generic Name Field to longtitle instead of title



Package: kdelibs-bin
Version: 4:3.2.2-1
Severity: important
Tags: patch

Hi,

while building the new Knoppix KDE CVS I noticed I forgot in my post to
debian-devel to add the change I made to freedesktop-desktop-entry-spec-apps.

We have the longtitle field and we should use it and I think the comment
field is not so good for longtitle as it does not get displayed (from
the desktop-entry-spec: only in tooltip).

However what would work is to use the Generic Name field as also many
KDE-Applications have a comment _or_ a generic name on the package.

As most menu items are not self-explanatory (what is slrn?) it would be
helpful to add this comments by the package.

slrn (Newsreader)

Following patch does that:

--- /mnt/hda3/etc/menu-methods/freedesktop-desktop-entry-spec-apps      2004-04-12 11:32:42.000000000 +0200
+++ freedesktop-desktop-entry-spec-apps 2004-04-12 17:35:43.000000000 +0200
@@ -13,7 +13,7 @@
        "Type=Application\n"
        "Encoding=UTF-8\n"
        "Name=" title() "\n"
-       "GenericName=" title() "\n"
+       "GenericName=" ifnempty($longtitle,replace($longtitle,title() ":", "")) "\n"
        "Comment=" ifnempty($longtitle,$longtitle) "\n"
        "Icon=" icon() "\n"
        "Exec=" $command "\n"

The replace is for applications, which repeat the title in the longtitle field, like xeyes.

Please think about it :-).

cu

Fabian

PS: Severity set to important as this can be a huge usability issue.



Reply to: