cups-1.2 installs a /usr/share/applications/cups.desktop entry, which contains "http://localhost:631/" invocation. However, by default www-client/htmlview atom is not in present (R)DEPEND in the ebuild. This prevents opening the CUPS web interface in a browser. But the htmlview package can be found in portage, so it should be added to DEPEND / RDEPEND to fully utilize cups features. Actual results: # emerge -pv cups These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] net-print/cups-1.2.1-r2 USE="dbus jpeg nls pam png samba ssl tiff -gnutls -slp" 0 kB # equery files cups | grep .desktop /usr/share/applications/cups.desktop # grep Exec /usr/share/applications/cups.desktop Exec=htmlview http://localhost:631/ $ htmlview http://localhost:631/ bash: htmlview: command not found Workaround - install manually: # emerge -av htmlview What should the software do instead: www-client/htmlview package should be a dependency of cups-1.2*
Created attachment 90102 [details, diff] cups-1.2.1-desktop.diff And while we are at it... A pl_PL localization patch for the problematic .desktop entry. Could it go in one shot with the htmlview?
I have committed a fix for this: 1) Depend on xdg-utils instead of htmlview, because xdg-utils will be used more often and already be on users systems. 2) utilize the X useflag to exclude pure server environments without desktop Please submit your polish patch upstream to the cups developers. Thank you for reporting.
(In reply to comment #2) > I have committed a fix for this: Thanks a lot! > Please submit your polish patch upstream to the cups developers. I've filled a Software Trouble Reported (STR #1920) against cups-1.2.2 as requested. See here if you want to track it further: http://www.cups.org/str.php?L1920