This is incompatible with loading attributes from a file with the -a flag and if both are set ippeveprinter exits with the default usage text. This would have been fine had it not been for the fact that document-format-supported is hardcoded when not set by the -f flag.
This means that it is not possible to set document-format-supported when using an attribute file.
This also applies to other default attributes that are set in create_printer so I think that the best solution would probably be for each of them to check if they have already been set and if so, don't set them again. Another simpler solution that would help in this specific case would for -f to not set the legacy flag.
When setting supported input file types in ippeveprinter with the
-f
flag thelegacy
flag is also set.https://github.com/OpenPrinting/cups/blob/3f7b5cbe7a339ee3f9a7fe64ac2a5dcb08370d8b/tools/ippeveprinter.c#L553-L560
This is incompatible with loading attributes from a file with the
-a
flag and if both are setippeveprinter
exits with the default usage text. This would have been fine had it not been for the fact thatdocument-format-supported
is hardcoded when not set by the-f
flag.https://github.com/OpenPrinting/cups/blob/3f7b5cbe7a339ee3f9a7fe64ac2a5dcb08370d8b/tools/ippeveprinter.c#L1876-L1880
This means that it is not possible to set
document-format-supported
when using an attribute file.This also applies to other default attributes that are set in
create_printer
so I think that the best solution would probably be for each of them to check if they have already been set and if so, don't set them again. Another simpler solution that would help in this specific case would for-f
to not set thelegacy
flag.