Re: can't print with firefox 0.9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Emiliano Brunetti wrote:
| Hi all,
|
| i'm having problems printing with Firefox 0.9 (rpm install from FC2
| repo). I tried searching around with no results. Strange is that i can
| print with all other apps, including mozilla. Also, the print command is
| exactly the same:
|
| lpr ${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}
|
| Anybody had such a problem?
|
| Cheers.
|
| E.

Hi Emiliano,

I have seen the same thing. There are two things that you can do:
1. Define the shell environment variable MOZ_PRINTER_NAME set to the
name of the desired default printer that you wish to print to from
Mozilla, Thunderbird, or Firefox. In your .bashrc file, add the line:
	export MOZ_PRINTER_NAME=printer_name

2. Or you can replace the string
"${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}" with "-P printer_name" .
The -P option to lpr tells lpr which printer to use. This is my choice
as I have several different printers that I might want to use. Mozilla
should remember your change so if you only have one printer you will
need to change this once.

I think that the "${MOZ_PRINTER_NAME:+'-P'}${MOZ_PRINTER_NAME}" is
supposed to evaluate to a "-P printer_name" if $MOZ_PRINTER_NAME is
defined and to a null string if it is not, but for me it results in the
lpr command failing and not printing. As I always simply entered
replaced the shell incantation with a literal "-P printer_name" I have
never checked to see what was (or was not) happening.

Hopefully this helps.

William
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBXiWbSyCBdS/az9wRAujGAJ0V/NdDLaurhkySS1MYgBT+ZxALwQCggez3
4uellR1OoTh0vyP/5h13HA8=
=Ieah
-----END PGP SIGNATURE-----


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux