Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a printer capable of printing high res photos on photo paper, and duplex documents on plain A4.

I have set the printer up twice (i.e. two separate printers pointing to the same URI) using the CUPS interface at http://localhost:631, once called Documents, once called Photos. For each of these instances I have set up the appropriate defaults (media type, size, print quality, duplex...). CUPS seems to remember these fine but applications (e.g. LibreOffice, EOG, firefox ... under Gnome Shell FWIW) seem to have some weird other default that bears no resemblance to either the defaults I set up, nor the last settings I used with any particular application.

It's a problem because there are so many settings to change that it adds a couple of minutes to each and every print job. Inevitably I forget one or two and end up having to reprint the job.

Seems there must be somewhere that these defaults get stored? Anyone shed any light on it?

share|improve this question
    
Are you sure these apps are able to do that ? CUPS can do that not sure about others. Also try asking in Ask.libreoffice.com –  Suhaib Feb 8 '13 at 21:50
    
An app is able to use and configure a printer. So if an app can choose a printer, and that printer is set up a particular way, it does not place any further feature requirements on the app itself. The question is why apps are not using printers' defaults –  artfulrobot Feb 10 '13 at 8:29

1 Answer 1

I have three CUPS print queues configured with the same printer URI. Queue "deskjet" is configured with my local standard paper, queue "Legal" is configured with "Legal" size paper, and queue "Envelopes" is configured for #10 Envelopes. "Legal" and "Envelopes" queues are stopped (via cupsdisable).

First, add the queue in CUPS (http://localhost:631), then use Administration->Modify Printer to change the paper type and other characteristics.

I use my setup like this:

# print to the Envelope queue ( select Envelope queue in your app)
envelope .envelope/addresses/Friend4 | lpr -PEnvelope 
cupsdisable deskjet
# remove regular paper, load envelopes
cupsenable Envelope
# wait until envelope is printed, then
cupsdisable Envelope
cupsenable deskjet
share|improve this answer
    
Thanks, but I don't understand how this answers the question. Sounds like you've got a set up like me (same printer, multiple queues with different defaults/preferences/options). Are you saying that your apps recognise the defaults when the other queues are stopped? Even with just one queue my apps don't pick up the default :-( –  artfulrobot Mar 22 '13 at 16:44
    
I set each app's default queue the way the app says (lpr -P, lpdest command, app preferences, environment variables). Which programs are you having trouble with? –  waltinator Apr 12 '13 at 7:06
    
eog in particular. But none of the apps I've tried (firefox, eog, libreoffice) seem to pickup the default media size. –  artfulrobot Apr 12 '13 at 16:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.