Windows 10 will reach EOS (end of support) on October 14, 2025. For more information, see this article.

Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

How do I set Firefox's default printer?

  • 4 réponses
  • 0 a ce problème
  • 35 vues
  • Dernière réponse par vesf

more options

I have these printers.

"HP LaserJet M109-M112" (the Windows default) "HP LaserJet 1020"

Regardless of the value of print.sav_print_settings, the first print dialog after starting Firefox shows "HP LaserJet 1020".

If I manually put "HP LaserJet M109-M112" (no quotes) in print_printer, it reverts to "HP LaserJet 1020" the next time Firefox starts.

How do I make "HP LaserJet M109-M112" Firefox's default? Thanks.

I have these printers. "HP LaserJet M109-M112" (the Windows default) "HP LaserJet 1020" Regardless of the value of print.sav_print_settings, the first print dialog after starting Firefox shows "HP LaserJet 1020". If I manually put "HP LaserJet M109-M112" (no quotes) in print_printer, it reverts to "HP LaserJet 1020" the next time Firefox starts. How do I make "HP LaserJet M109-M112" Firefox's default? Thanks.

Solution choisie

Problem solved! But first, to answer my last question ... because the printer was specified in user.js.

I vaguely remember doing that (3+ years ago) because Firefox was remembering "Microsoft XPS Document Writer" which I use very seldom; that was annoying me. So I changed the user.js specification.

Is there a way, other than a manual edit, to get/change what's in user.js?

Thanks.

Lire cette réponse dans son contexte 👍 0

Toutes les réponses (4)

more options

For me, when I click File -> Print, I get a Print Preview dialog with a Destination drop-down on the top-right. Whatever I pick here to print with, it seems to keep whatever I last printed with as the currently selected choice.

Do you see both printers in this drop-down?

Cela vous a-t-il été utile ?

more options

Yes, they're both in the dropdown. If I select the desired printer my selection persists until Firefox is terminated. When I start Firefox again it's back to HP LaserJet 1020 (which is not the Windows default printer, and not desired).

Cela vous a-t-il été utile ?

more options

Why does Firefox keep using that printer at startup when ...

1. It is not the last printer used 2. It is not the Windows default printer 3. It is not the first (of the two) returned by the EnumPrinters() API

Cela vous a-t-il été utile ?

more options

Solution choisie

Problem solved! But first, to answer my last question ... because the printer was specified in user.js.

I vaguely remember doing that (3+ years ago) because Firefox was remembering "Microsoft XPS Document Writer" which I use very seldom; that was annoying me. So I changed the user.js specification.

Is there a way, other than a manual edit, to get/change what's in user.js?

Thanks.

Cela vous a-t-il été utile ?

Poser une question

Vous devez vous identifier avec votre compte pour répondre aux messages. Veuillez poser une nouvelle question, si vous n’avez pas encore de compte.