Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 377611

Summary: net-print/hplip needs autostart use flag
Product: Gentoo Linux Reporter: Jason A. Donenfeld <zx2c4>
Component: Current packagesAssignee: Daniel Pielmeier <billie>
Status: RESOLVED INVALID    
Severity: normal CC: calchan, printing
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://git.zx2c4.com/portage/tree/net-print/hplip/hplip-3.11.7-r1.ebuild
Whiteboard:
Package list:
Runtime testing required: ---

Description Jason A. Donenfeld gentoo-dev 2011-08-03 19:18:45 UTC
Everytime I install hplip, it installs with it 	use !autostart && /etc/xdg/autostart/hplip-systray.desktop which makes a pesky tray app start up with start-up every time. I realize this is an HP app, but Linux is not Windows, and as such, having tray apps be installed *system wide* for everyone is really not okay. There are tricks to override this by putting blank .desktop files in various places, but the documentation for doing this for each DE is different, and most such mechanisms are broken or ill-defined anyway. In any case, resorting to user-specific hacks should not be required.

Instead this ebuild should ship with a "-autostart" use flag, by default disabled, and then if someone wants the awful autostart tray app, they can enable the autostart use flag.

In fact, I've already gone ahead and coded such an ebuild by modifying the old one and adding a simple line:

http://git.zx2c4.com/portage/tree/net-print/hplip/hplip-3.11.7-r1.ebuild#n251

	use !autostart && rm -f "${D}"/etc/xdg/autostart/hplip-systray.desktop


Let's get these changes merged! Thanks.


Reproducible: Always
Comment 1 Jason A. Donenfeld gentoo-dev 2011-08-03 19:19:32 UTC
Typo: first sentence should be:

Everytime I install hplip, it installs with it /etc/xdg/autostart/hplip-systray.desktop 


Sorry for the confusion. Copy and pasting...
Comment 2 Daniel Pielmeier gentoo-dev 2011-08-04 18:08:57 UTC
Sorry, but I will not introduce a new use flag for the installation of a single file. Every reasonable Desktop should have measures which make it easy to disable autostart files. Example for Xfce you can disable unwanted autostart entries under Settings->Session and Startup->Application Autostart. This creates a file with the same name under ~/.config/autostart/. Similar this should be possible for KDE, Gnome, etc.

cat ~/.config/autostart/hplip-systray.desktop

[Desktop Entry]
Hidden=true