If a printcap entry contains aliases, xfprint ignores the aliases. If a user has one of those aliases defined in their PRINTER environment variable, and assumes that dragging a file to the xfprint icon will print the file to that printer, they will not get the desired result. Instead, the print job will go to the first printer in the list of printers because the system does not recognize the alias defined in PRINTER. (I know this listed in the code as a "todo". I thought I would add an entry here as a feature request just to put the feature request in writing. In the meantime, I can get around this by redefining the entries multiple times.) Reproducible: Always Steps to Reproduce: 1. 2. 3.
can printcap contain more than one alias per printer ?
Yes -- I don't even know if there is a limit to the number of aliases you can have for a printer. One easy way, I think, of handling this situation is to treat each alias as a separate entry in the printer list. In fact, if you did this, the definition of "Printer" could be a simpler data type!
the Printer struct and its alias member exists because of CUPS where you can only define one alias per printer. I think i'll go this way and use a printer entry per alias.
added in HEAD and xfce_4_2 (for your information i started to work on a LPRng plugin)