Automatic plug-in installation not working under Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Invalid
|
Undecided
|
Unassigned | ||
hplip (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
policykit (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I have packaged HPLIP 3.11.12 for Ubuntu Precise (12.04) and I have also backported this package to Oneiric (11.10, package in my PPA: https:/
With the binary package hplip-gui and all its dependencies installed the plug-in should be downloaded and installed automatically if a printer gets connected which requires the plug-in, via the newly added feature of HPLIP 3.11.12.
It seems that when hp-systray calls hp-plugin, hp-plugin gets run as normal user (not as root) and then it is not able to install the files of the plug-in in subdirectories of /usr/share/hplip and /etc where only root has write access.
What needs to be done here is to use PolicyKit or tools like gksudo. Is such a thing actually used?
Hi Till,
Thank you for the information. For plug-in printers, when non-root user connects the printer using USB, he/she will be prompted for password.
As you mentioned, when non-root user plugs-in the printer, script checks whether plug-in is already installed or not. plugin" . On clicking "Next" button, this hp-diagnose_plugin tool prompt for password using tools like policykit or gksudo, kdesu, gksu.
if not installed, hp-systray calls "hp-diagnose_
This new feature is not be supported for qt3.(supports only for qt4).
Please let us know more details on this problem.
Thanks & Regards,
Amarnath