[nflug] Selecting a printer in Firefox 1.07 & 1.5

Joe josephj at main.nc.us
Wed Dec 28 17:54:53 EST 2005


I'm out of my depth here, but it looks like cups uses "filters" for 
various file types as they are processed..  Modifying one or more of 
these filters would work if you could associate them only with a special 
printer instance, etc. so they wouldn't get in the way of everything 
else.  I don't know how to do this and it may be the same as the script 
approach as far as advantages and problems.  Just ideas.

The main point here is if you can find a way to set up a special purpose 
dummy printer that does what you want and turns the rest over to cups, 
that may solve your (and my) problem.

Joe

Cyber Source wrote:

> Joe wrote:
>
>> See my post that crossed yours in the mail.
>>
>> Obviously, one could write a script called lp and put it in the path 
>> ahead of /usr/bin (or wherever lp lives), and in it call your own 
>> script/program and eventually reference the real lp by a full path to 
>> avoid a recursive loop, but that might cause problems for other 
>> programs unless you did it very carefully.
>>
>> Joe
>>
>> Cyber Source wrote:
>>
>>> I am curious about this as well because I like a little app called 
>>> gtklp. It allows me all sorts of configs to the printer and it works 
>>> fine because I actually made all calls to lp go to gtklp, 
>>> interception made! However, apps that print directly to cups, 
>>> including now new Firefox 1.5 and Thunderbird 1.5. The question 
>>> would be, how would one intercept cups files? For lp, it was 
>>> /usr/bin/lp, etc..
>>>
>>> Joe wrote:
>>>
>>>> I figured out part of it, but it still doesn't work.
>>>> In Firefox, I go to about:config
>>>> In there, I changed everything (about 4 places) that mentioned lpr 
>>>> to dplx.
>>>> My changes persisted, but the printing still does not access my 
>>>> script.  I made sure to exit and restart Firefox because I assumed 
>>>> that prefs.js only gets read at startup.
>>>>
>>>> Joe wrote:
>>>>
>>>>> Hi.  I do almost all my printing through my duplex package (shell 
>>>>> scripts).  Most applications let me specify a program to print - 
>>>>> like lp, or in my case, dplx.  Firefox only shows me the printers 
>>>>> I have defined to cups - none of which use my script.
>>>>>
>>>>> How do I get Firefox to let me print to my script?
>>>>>
>>>>> (I know I can print to file and then use the script, but I don't 
>>>>> always want to do that.)
>>>>>
>>>>> I had a look at the cups user manual, but didn't see anything 
>>>>> obvious about how to add a filter, etc. for my scripts.
>>>>>
>>>>> I am using mandrake 9.1, HP 895Cse, hpijs driver.
>>>>>
>>>>> TIA
>>>>>
>>>>> Joe
>>>>>
>>>>
>>> _______________________________________________
>>> nflug mailing list
>>> nflug at nflug.org
>>> http://www.nflug.org/mailman/listinfo/nflug
>>>
>>
> If you read my post, that's what I did but cups seems to be more 
> complicated than that
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
>

-- 
"You are what you do. A man is defined by his actions, not his memory." -- Kuato in "Total Recall"


_______________________________________________
nflug mailing list
nflug at nflug.org
http://www.nflug.org/mailman/listinfo/nflug



More information about the nflug mailing list