All hp-*.desktop files contain a line "NoDisplay=true", so they do not appear in the desktop menues by default. The hplip.desktop and hp-toolbox.desktop files are identical except that hplip.desktop DOES NOT contain "NoDisplay=true", so this entry always appears.
So my suggestion is to remove hplip.desktop as it is a duplicate and to move the other 3 .desktop files into a separate binary package named "hplip-gui", but with the "NoDisplay=true" lines removed. "hplip-gui" will then depend on python-qt and hplip and it will only be installed by default on the Kubuntu (KDE-based) desktop CD but not on the desktop CDs of Ubuntu (GNOME) and Xubuntu (XFCE). the "hplip" package should recommend/suggest "hplip-gui" so that a package installer tool makes the user aware of the available GUI.
So a user who wants to have the HPLIP GUIs on Ubuntu or Xubuntu has to install only the "hplip-gui" package and everything needed gets installed.
WDYT?
P. S.: Also the /usr/bin/hp-toolbox link can be moved into "hplip-gui".
The HPLIP 1.6.10-2ubuntu1 (current Feisty) contains the following 4 .desktop files:
till@till- laptop: ~/ubuntu/ hplip/hplip- 1.6.10$ dpkg -c ../hplip_ 1.6.10- 2ubuntu1_ i386.deb | grep '\.desktop' applications/ hp-fab. desktop applications/ hp-sendfax. desktop applications/ hp-toolbox. desktop applications/ hplip.desktop laptop: ~/ubuntu/ hplip/hplip- 1.6.10$
-rw-r--r-- root/root 302 2006-12-11 10:54 ./usr/share/
-rw-r--r-- root/root 262 2006-12-11 10:54 ./usr/share/
-rw-r--r-- root/root 281 2006-12-11 10:54 ./usr/share/
-rw-r--r-- root/root 266 2006-12-11 10:54 ./usr/share/
till@till-
All hp-*.desktop files contain a line "NoDisplay=true", so they do not appear in the desktop menues by default. The hplip.desktop and hp-toolbox.desktop files are identical except that hplip.desktop DOES NOT contain "NoDisplay=true", so this entry always appears.
So my suggestion is to remove hplip.desktop as it is a duplicate and to move the other 3 .desktop files into a separate binary package named "hplip-gui", but with the "NoDisplay=true" lines removed. "hplip-gui" will then depend on python-qt and hplip and it will only be installed by default on the Kubuntu (KDE-based) desktop CD but not on the desktop CDs of Ubuntu (GNOME) and Xubuntu (XFCE). the "hplip" package should recommend/suggest "hplip-gui" so that a package installer tool makes the user aware of the available GUI.
So a user who wants to have the HPLIP GUIs on Ubuntu or Xubuntu has to install only the "hplip-gui" package and everything needed gets installed.
WDYT?
P. S.: Also the /usr/bin/hp-toolbox link can be moved into "hplip-gui".