Whether system-config-printer could match the driver through the product fields in the PPD file ? #370
Unanswered
PierceDong
asked this question in
Q&A
Replies: 1 comment
-
Really appreciate your help. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Whether system-config-printer could match the driver through the product fields in the PPD file ?
For now, there is a printer Toshiba e-STUDIO 2520AC and the product fields in the PPD file already contains the info of this printer, but system-config-printer didn't match the driver automatically, from the code below, the driver of this printer should be matched successfully, right ?
aliases = {} # Generic model name: set(specific model names)
for ppdname, ppddict in self.ppds.items ():
# One entry for ppd-make-and-model
ppd_make_and_model = _singleton (ppddict['ppd-make-and-model'])
ppd_mm_split = ppdMakeModelSplit (ppd_make_and_model)
ppd_makes_and_models = set([ppd_mm_split])
from the comments above. the code will process the product fields in the PPD file, right ?
the Product fields in the PPD file looks like this:
*Product: "(TOSHIBA e-STUDIO2520AC)"
*Product: "(TOSHIBA e-STUDIO5525AC)"
*Product: "(TOSHIBA e-STUDIO4525AC)"
*Product: "(TOSHIBA e-STUDIO3525AC)"
*Product: "(TOSHIBA e-STUDIO3025AC)"
*Product: "(TOSHIBA e-STUDIO2525AC)"
*Product: "(TOSHIBA e-STUDIO2025AC)"
*Product: "(TOSHIBA e-STUDIO2520AC)"
Beta Was this translation helpful? Give feedback.
All reactions