Re: [opensuse] How can I change the default printer for Firefox

2007-06-13 Thread Johannes Meixner

Hello,

On Jun 13 01:26 Carlos E. R. wrote (shortened):
 The Tuesday 2007-06-12 at 16:13 +0200, Johannes Meixner wrote:
 
  Both lpadmin -d ... as root and lpoptions -d ... as normal user
  and as root work perfectly well for me using openSUSE 10.2 even
  without restarting of Firefox (MozillaFirefox-2.0-30).
  It uses always the queue which is shown by lpstat -d for
  the user who runs Firefox.
 
 The problem was that I used the cups local web page to define which 
 printer was the default one, and Mozilla ignores that. It worked when I 
 used the CLI only to define the default printer, the other setting via 
 GUI is ignored.

Thanks for the information.

I could verify that it fails via CUPS web interface when you do
it the first time - i.e. when CUPS does its authentication.
After authentication my Firefox returns with a blank page
but a special URL is shown in its URL line.
The default was not changed (lpstat -d still shows the old
default) but it changes when I let Firefox load the special URL
(lpstat -d shows the new default and also Firefox's print menue).

Once you did the authentication (without restaring Firefox)
it works well via the CUPS web interface to change the
default to this or that queue (because as long as Firefox
runs there is no need for a second authentication).

Therefore it is a bug regarding how authentication via
the CUPS web interface works with the browser.
Perhaps it happens only in Firefox - perhaps Firefox's defaults
inhibit something (e.g. an automated replacement of a web page
by a new one - those with the special URL) or whatever the actual
reason might be (I am neither a HTTP nor a browser expert).


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-12 Thread Johannes Meixner

Hello,

On Jun 11 09:45 Wolfgang Rosenauer wrote (shortened):
 Carlos E. R. wrote:
 
  I change, using cups, the default printer for the user, but Firefox still 
  wants to use the previous default printer. How do I convince Firefox to 
  change to the real default printer instead of his own idea of what should 
  be the default printer?
 
 It should get the right one but at least you would have to restart
 Firefox I guess.

Both lpadmin -d ... as root and lpoptions -d ... as normal user
and as root work perfectly well for me using openSUSE 10.2 even
without restarting of Firefox (MozillaFirefox-2.0-30).
It uses always the queue which is shown by lpstat -d for
the user who runs Firefox.

Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-12 Thread Carlos E. R.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The Tuesday 2007-06-12 at 16:13 +0200, Johannes Meixner wrote:

 Both lpadmin -d ... as root and lpoptions -d ... as normal user
 and as root work perfectly well for me using openSUSE 10.2 even
 without restarting of Firefox (MozillaFirefox-2.0-30).
 It uses always the queue which is shown by lpstat -d for
 the user who runs Firefox.


The problem was that I used the cups local web page to define which 
printer was the default one, and Mozilla ignores that. It worked when I 
used the CLI only to define the default printer, the other setting via 
GUI is ignored.

It is not a strictly bug, though, as the web page pops a transient message 
warning of that posibility. I would consider it a bug, though.

- -- 
Cheers,
   Carlos E. R.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGbyuptTMYHG2NR9URAndiAJ43vVc4f39M6VRMoHSHk96SWmmzBgCcDxqE
tLn/O9vXozIzIL0VZKcbSMw=
=mzPs
-END PGP SIGNATURE-

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-11 Thread Wolfgang Rosenauer
Carlos E. R. wrote:

 I change, using cups, the default printer for the user, but Firefox still 
 wants to use the previous default printer. How do I convince Firefox to 
 change to the real default printer instead of his own idea of what should 
 be the default printer?

It should get the right one but at least you would have to restart
Firefox I guess.

Wolfgang
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-11 Thread Carlos E. R.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The Sunday 2007-06-10 at 21:00 -0600, Carlos F Lange wrote:

  Firefox to change to the real default printer instead of his own idea
  of what should be the default printer?
 
 If you want to parse through Kprinter, these are the hints I give to my 
 students on how to setup printing in Firefox:

Not really, because I don't use kde normally.

 
  1.1.To send print jobs through Kprinter, enter as URL about:config, 
 then change the entry print.postscript.print_command, 
 print.print_command and 
 print.printer_Postscript/default.print_command to Value: kprinter. 


print.print_command  does not exist.

print.postscript.print_command = lpr 
${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}

print.printer_PostScript/default.print_command = lpr 
${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}


So that is correct. Then, I have:

print.print_printer = CUPS/tofile

which is the printer I want to have, but still when I try to print mozilla 
(I mean, firefox) pops the print dialog with the previous printer 
selected, and the one I want half way down the list.


 When printing select PostScript/default as Printer Name.

I did that once, yes, but the choice in the dialog does not stick. And 
that PostScript/default does not print to my system default printer as 
defined in cups (it prints to tp0).


I could hack those to the name I want, but I don't like that. I will 
forget the default string when I want to put it back and will have to ask 
here again O:-)



  1.2.To prevent cropping of header and footer when printing, change Gap 
 from edge to Margin to 0.25 inches in all sides in Printer / 
 Properties in the Print window. 
 (this was just a bonus hint ;)

Ah, yes... I have them at the default .14 inches. Should change that, 
probably.

- -- 
Cheers,
   Carlos E. R.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGbRe/tTMYHG2NR9URArwpAJ9X3Nkw+Id6rxj8CsT6p7v8hLr1zgCePk1t
Y/YMD785TamtIdEF+WdvstQ=
=Y7Lb
-END PGP SIGNATURE-

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-11 Thread Carlos E. R.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The Monday 2007-06-11 at 09:45 +0200, Wolfgang Rosenauer wrote:

 It should get the right one but at least you would have to restart
 Firefox I guess.

I restarted several times already. The firefox print dialog wants to print 
to the previous default printer every single time.

- -- 
Cheers,
   Carlos E. R.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGbRgFtTMYHG2NR9URAmvLAJ9Ocb1NqbWeWV89wRxjaUwhCIUvnQCgjOf5
z3/VhnqJGIojiLOIGJczV1I=
=1EV2
-END PGP SIGNATURE-

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-11 Thread Carlos E. R.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The Sunday 2007-06-10 at 19:33 -0500, M Harris wrote:

  How do I convince Firefox to
  change to the real default printer instead of his own idea of what should
  be the default printer?
   If you're not running Firefox 2.0.0.4, then get it.

That's the one I have.

 
   ... also, go back into cups... use the 
 
   SUSE == Utilities == Printing == Printing Manager
 
   ... as administrator (use the root password) and set the default 
 printer 
 again...  probably didn't take.

That's what I did and it is correctly set.

And it pops a warning, that any user default using lpoptions will override 
the settings via cups web local page. Indeed, lpoptions shows the old 
printer.

 
   Firefox will use the default system printer... mine works great.


It doesn't here.



I had to use the command line:

 lpoptions -d tf0

and now firefox takes the new one.


10 points to the command line, zero to the GUI.



- -- 
Cheers,
   Carlos E. R.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGbRrRtTMYHG2NR9URAhuGAJ46DZeyxJiyXIyNMzJwm+z7UBgSuQCdFsSj
AD6e9B64YVq9mp6vFYq7Tls=
=hke4
-END PGP SIGNATURE-

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-11 Thread Kenneth Schneider
On Mon, 2007-06-11 at 11:38 +0200, Carlos E. R. wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 The Monday 2007-06-11 at 09:45 +0200, Wolfgang Rosenauer wrote:
 
  It should get the right one but at least you would have to restart
  Firefox I guess.
 
 I restarted several times already. The firefox print dialog wants to print 
 to the previous default printer every single time.
 

Try using lpoptions -d printer_name as your user and see if it changes
the default.

-- 
Ken Schneider
UNIX  since 1989, linux since 1994, SuSE  since 1998

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-11 Thread Kenneth Schneider
On Mon, 2007-06-11 at 07:28 -0400, Kenneth Schneider wrote:
 On Mon, 2007-06-11 at 11:38 +0200, Carlos E. R. wrote:
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
  
  
  The Monday 2007-06-11 at 09:45 +0200, Wolfgang Rosenauer wrote:
  
   It should get the right one but at least you would have to restart
   Firefox I guess.
  
  I restarted several times already. The firefox print dialog wants to print 
  to the previous default printer every single time.
  
 
 Try using lpoptions -d printer_name as your user and see if it changes
 the default.

Just a follow up.

From the CUPS manual:

Setting the Default Printer

Run the lpadmin command with the −d option to set a default printer:
/usr/sbin/lpadmin −d printer ENTER


The default printer can be overridden by the user using the lpoptions(1)
command.


-- 
Ken Schneider
UNIX  since 1989, linux since 1994, SuSE  since 1998

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-11 Thread Carlos E. R.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


The Monday 2007-06-11 at 07:28 -0400, Kenneth Schneider wrote:


  I restarted several times already. The firefox print dialog wants to print 
  to the previous default printer every single time.
 
 Try using lpoptions -d printer_name as your user and see if it changes
 the default.

I know, already did that and it worked, as I said in other part of the 
thread :-)

- -- 
Cheers,
   Carlos E. R.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGbTS9tTMYHG2NR9URAgkCAJ4rLqLxPXQMi2Kl9gIRrjmbNLZm4ACdHYPI
l+Wb7IGB9+B5N3LawGocx/c=
=CGup
-END PGP SIGNATURE-

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[opensuse] How can I change the default printer for Firefox

2007-06-10 Thread Carlos E. R.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Hi,

I change, using cups, the default printer for the user, but Firefox still 
wants to use the previous default printer. How do I convince Firefox to 
change to the real default printer instead of his own idea of what should 
be the default printer?

- -- 
Cheers,
   Carlos Robinson

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Made with pgp4pine 1.76

iD8DBQFGbJSTtTMYHG2NR9URAlLiAJ9pGDCHHDMJw8tbD3OPp52fDAbSzgCfQUEv
8uTIt/acK/K3jwTisXP2f18=
=QnSG
-END PGP SIGNATURE-

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-10 Thread M Harris
On Sunday 10 June 2007 19:17, Carlos E. R. wrote:
 How do I convince Firefox to
 change to the real default printer instead of his own idea of what should
 be the default printer?
If you're not running Firefox 2.0.0.4, then get it.

... also, go back into cups... use the 

SUSE == Utilities == Printing == Printing Manager

... as administrator (use the root password) and set the default 
printer 
again...  probably didn't take.

Firefox will use the default system printer... mine works great.



-- 
Kind regards,

M Harris 
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [opensuse] How can I change the default printer for Firefox

2007-06-10 Thread Carlos F Lange
On Sun June 10 2007 18:17, Carlos E. R. wrote:
 Hi,

 I change, using cups, the default printer for the user, but Firefox
 still wants to use the previous default printer. How do I convince
 Firefox to change to the real default printer instead of his own idea
 of what should be the default printer?

If you want to parse through Kprinter, these are the hints I give to my 
students on how to setup printing in Firefox:

 1.1.To send print jobs through Kprinter, enter as URL “about:config”, 
then change the entry “print.postscript.print_command”, 
“print.print_command” and 
“print.printer_Postscript/default.print_command” to Value: “kprinter”. 
When printing select “PostScript/default” as “Printer Name”.

 1.2.To prevent cropping of header and footer when printing, change “Gap 
from edge to Margin” to 0.25 inches in all sides in Printer / 
Properties in the Print window. 
(this was just a bonus hint ;)

-- 
Carlos FL

Who is General Failure, and why is he reading my disk?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]