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.
Are you already mapping to package name? If so, does '/usr/bin/system-install-packages foo' not do what you want?
Ah, that's exactly what I'm looking for -- thanks.
..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
Works fine for me here -- what version of pirut do you have?
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.
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