Comment 2 for bug 380311

Revision history for this message
Dyna (dyn-ares) wrote : Re: [Bug 380311] Re: su/sudo not found...

Will check and report later...

Cheers Dyna

----- Original Message ----
From: Till Kamppeter <email address hidden>
To: <email address hidden>
Sent: Tuesday, May 26, 2009 2:27:14 PM
Subject: [Bug 380311] Re: su/sudo not found...

I have applied the fix to the Debian SVN repository and will soon upload
the fixed package to Ubuntu.

Usually you should not hit this bug even with it being present, as HPLIP
supports PolicyKit and it calls tools like kdesudo only if it does not
succeed to use PolicyKit. Can you open a second bug report about HPLIP
not using PolicyKit on your system? Thanks in advance.

--
su/sudo not found...
https://bugs.launchpad.net/bugs/380311
You received this bug notification because you are a direct subscriber
of the bug.

Status in “hplip” source package in Ubuntu: In Progress

Bug description:
Binary package hint: hplip-data

When using hp-toolbox in KDE doing something that requires admin privileges you will get a su/sudo not found "Unable to find an appropriate su/sudo to run hp-plug" this due to most likely a typo in ui_utils.py.

Following patch takes care of it

--- /tmp/ui_utils.py 2009-05-25 17:00:24.000000000 +0100
+++ ui4/ui_utils.py 2009-05-25 17:00:37.000000000 +0100
@@ -212,7 +212,7 @@
         su_sudo_str = 'kdesu -- %s'

     elif utils.which('kdesudo'):
- su_sudo = 'kdesudo -- %s'
+ su_sudo_str = 'kdesudo -- %s'

     elif utils.which('gnomesu'):
         su_sudo_str = 'gnomesu -c "%s"'

Cheers Dyna