su/sudo not found...

Bug #380311 reported by Dyna
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
hplip (Ubuntu)
Fix Released
Undecided
Unassigned

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

Changed in hplip (Ubuntu):
status: New → In Progress
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

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.

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hplip - 3.9.4b-1ubuntu1

---------------
hplip (3.9.4b-1ubuntu1) karmic; urgency=low

  * debian/patches/kde4-kdesudo-support.dpatch: Fixed typo (LP: #380311).

 -- Till Kamppeter <email address hidden> Tue, 26 May 2009 01:14:49 +0200

Changed in hplip (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.