[cups] Handling of "Installable Options" in user applications

Johannes Meixner jsmeix at suse.de
Mon Sep 7 02:35:20 PDT 2015


Hello,

On Sep 4 17:16 Brian Potkin wrote:
> On Fri 04 Sep 2015 at 12:17:34 +0200, Michael Weghorn wrote:
>
>> I am aware that disabling those options in the printing dialog does not make
>> it impossible to wrongly set those options, as it is for example still
>> possible to set them using "lpoptions" or giving it as a command line option
>> to "lp". Most users however do not use this and I suppose that those who do
>> should know what they are doing...
>>
>> I am also aware that a possible workaround for our specific problem would be
>> to manually change the PPD file for the printer model by removing all
>> choices for installable options except those that are actually installed.
>>
>> I would, however, be very happy to receive feedback on how this should be
>> handled in general.
>> If you have better ideas of making it hard/impossible for the user to set
>> wrong options (apart from changing the PPDs), I would of course also be
>> happy to hear about it.
>
> Tea4CUPS is worth looking at. The user can set as many options as she
> wishes but a script will ensure the ones set for the queue will not be
> overridden. The Debian Wiki might help.

Regardless what other software is used, it cannot prevent a user
from setting arbitrary options via the "lp" command.

Because the PPD defines the printer capabilities, it is the PPD
that must be adjusted to contain the right capabilities for the
particular printer device.

Anything else are only more or less good workarounds.

Cf.
https://en.opensuse.org/SDB:Print_Settings_with_CUPS


Kind Regards
Johannes Meixner
-- 
SUSE LINUX GmbH - GF: Felix Imendoerffer, Jane Smithard,
Graham Norton - HRB 21284 (AG Nuernberg)




More information about the cups mailing list