Ubuntu

Comment 15 for bug 67892

The problem is that there is more than one .desktop file to start the hp-toolbox:

----------
till@till-laptop:~/printing/foomatic/lporg-site$ dpkg -S .desktop 2>&1 | grep '/hp'
hplip: /usr/share/applications/hplip.desktop
hplip: /usr/share/applications/hp-fab.desktop
hplip: /usr/share/applications/hp-toolbox.desktop
hplip: /usr/share/applications/hp-sendfax.desktop
app-install-data: /usr/share/app-install/desktop/hplip.desktop
hplip: /usr/share/applications/hplip-kubuntu.desktop
till@till-laptop:~/printing/foomatic/lporg-site$ less /usr/share/app-install/desktop/hplip.desktop
till@till-laptop:~/printing/foomatic/lporg-site$
----------

in total my installation (Ubuntu standard + KDE) contains 4:

----------
till@till-laptop:~/printing/foomatic/lporg-site$ grep -i Exec `dpkg -S .desktop 2>&1 | grep '/hp' | cut -d ' ' -f 2`
/usr/share/applications/hplip.desktop:Exec=/usr/bin/hp-toolbox
/usr/share/applications/hp-fab.desktop:Exec=/bin/sh -c 'STARTED_FROM_MENU=yes /usr/bin/hp-fab'
/usr/share/applications/hp-toolbox.desktop:Exec=/usr/bin/hp-toolbox
/usr/share/applications/hp-sendfax.desktop:Exec=/usr/bin/hp-sendfax
/usr/share/app-install/desktop/hplip.desktop:Exec=/usr/bin/hp-toolbox
/usr/share/applications/hplip-kubuntu.desktop:Exec=/usr/bin/hp-toolbox
till@till-laptop:~/printing/foomatic/lporg-site$
----------

where 2 are already in the hplip package, and assuming that app-install-data makes also part of a Ubuntu live CD there are 3.

Only the following files are deactivated with a "NoDisplay=true" directive:

----------
-till@till-laptop:~/printing/foomatic/lporg-site$ grep -i nodisplay `dpkg -S .desktop 2>&1 | grep '/hp' | cut -d ' ' -f 2`
/usr/share/applications/hp-fab.desktop:NoDisplay=true
/usr/share/applications/hp-toolbox.desktop:NoDisplay=true
/usr/share/applications/hp-sendfax.desktop:NoDisplay=true
till@till-laptop:~/printing/foomatic/lporg-site$
---------

This means for fixing the bug two more .desktop files need to be removed or need the "NoDisplay=true" added:

/usr/share/applications/hplip.desktop (package hplip)
/usr/share/app-install/desktop/hplip.desktop (package app-install-data)

It should also be taken care of

/usr/share/applications/hplip-kubuntu.desktop

in the hplip package. This file is there for Kubuntu (KDE-based) and should not generate an icon in Ubuntu, Xubuntu, or Edubuntu.

As one of the candidates for the unwished icon is in the app-install-data package, I add this package to this bug report.