Steps: 1. Emerge hplip with -qt. 2. Select Applications|Accessories|HP Device Manager in Gnome Result: Error: Cannot launch entry This problem exists in hplip-0.9.7-r3 and hplip-0.9.8-r1. The .desktop file runs /usr/share/hplip/toolbox, but this file doesn't exist when the qt use flag is disabled. In this case, the .desktop file shouldn't be installed. Suggested patch: @@ -112,6 +113,8 @@ make DESTDIR="${D}" install || die fi - dodir /usr/share/applications - mv "${D}"/usr/share/hplip/data/hplip.desktop "${D}"/usr/share/applications + if use qt; then + dodir /usr/share/applications + mv "${D}"/usr/share/hplip/data/hplip.desktop "${D}"/usr/share/applications + fi } In the -qt case, the .desktop file could be removed from /usr/share/hplip/data: @@ -90,6 +90,7 @@ rm -f "${D}"/usr/bin/hp-toolbox rm -f "${D}"/usr/share/hplip/print rm -f "${D}"/usr/share/hplip/toolbox + rm -f "${D}"/usr/share/hplip/data/hplip.desktop fi if use ppds; then
I am fine with removing this entry for -qt, but is there any reason that you want to both install it conditionally and remove it?
Never mind.
Thanks, fixed in cvs. I'm not doing a revbump because most people will not want to re-compile to have a desktop entry removed... :-) Cheers