Bug 246726

Summary: use system-install-packages for missing drivers
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: system-config-printerAssignee: Tim Waugh <twaugh>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.7.70-1.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-07-09 13:35:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 235704    

Description Tim Waugh 2007-07-04 13:52:10 UTC
In system-config-printer it would be useful to be able to install a named
package.  When a PPD is installed, it can check to see what executable(s) it
needs, and can map those to package names if not found in the path.

All it can do with that at the moment is present a dialog suggesting that the
user install the relevant package.

It would be nice if it could ask pirut to install the package.

Comment 1 Jeremy Katz 2007-07-04 14:59:41 UTC
Are you already mapping to package name?  If so, does
'/usr/bin/system-install-packages foo' not do what you want?

Comment 2 Tim Waugh 2007-07-04 15:12:59 UTC
Ah, that's exactly what I'm looking for -- thanks.

Comment 3 Tim Waugh 2007-07-04 18:09:37 UTC
..although actually it doesn't work.  It acts as though no arguments were
supplied even though they were.  I think the userhelper stuff is confusing it:

  \_ /usr/bin/system-install-packages pnm2ppa
      \_ /usr/sbin/userhelper -w system-install-packages pnm2ppa
          \_ /usr/bin/python -tt /usr/sbin/system-install-packages pnm2ppa


Comment 4 Jeremy Katz 2007-07-06 20:09:15 UTC
Works fine for me here -- what version of pirut do you have?

Comment 5 Tim Waugh 2007-07-09 12:19:30 UTC
Trying it on FC-6 with pirut-1.2.8-1.fc6 gives that behaviour anyway.

I can't seem to try it on F-8 at the moment because starting
system-config-printer as non-root doesn't display a window. :-/

Trying 'system-install-packages pnm2ppa' as non-root by hand works on F-8 though.

Comment 6 Jeremy Katz 2007-07-09 13:41:38 UTC
Ah, okay.  Yeah, it's F7 and later at the moment as that's what the patch was
provided for and Owen didn't care much about having it released as an FC6 update