X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Can't set default printer in Linux

Posted

I have just installed a new printer on my system. Firefox used the old printer name by default
Following the advice in: http://support.mozilla.org/en-US/questions/762570#answer-114800
I have printed a number of documents using the new printer (Firefox is supposed to remember the name of the last printer used) -- no change;
Reset the value field in about:config->print.print_printer -- the entire entry has disappeared and has not been restored after printing a document; also the default printer is not changed
Abolished my old printer -- Firefox now defaults to a virtual printer, namely Cups-PDF
Set the value field in print.save_print_settings to false -- Firefox still uses Cups-PDF
The new printer, once selected, works perfectly.

What's going on? How can I change the default printer to the value I want?

Modified by cor-el

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.2 r202
  • This plugin provides integration with Gnome Shell for live extension enabling and disabling. It can be used only by extensions.gnome.org
  • The IcedTea-Web Plugin executes Java applets.
  • The Totem 3.4.3 plugin handles video and audio streams.
  • DivX Web Player version 1.4.0.233
  • This plug-in detects the presence of iTunes when opening iTunes Store URLs in a web page with Firefox.

Application

  • User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20100101 Firefox/16.0

More Information

John99
  • Top 25 Contributor
  • Moderator
622 solutions 7999 answers

Did you read the replies in the thread you linked to and the article

I am not sure what you have done; but could you have you left the preferences in for the old printer and so Firefox is defaulting to printing to file, (those preferences will end print_to_filename) because there are no entries for the new printer.

See also

You could try resetting the print settings by resetting the pref print.print_printer
or you could follow the instructions in the above linked article and manually reset all printer preferences by editing prefs.js to delete all the print preferences. (Back it up first by copying it, and work with Firefox closed down)

I don't think printing is a strongpoint of Firefox.

Question owner

I'm not surprised that you couldn't follow my original posting, since all the formatting info was stripped. I'm reposting to preserve formatting, adding my latest attempts.

I have just installed a new printer on my system. Firefox used the old printer name by default Following the advice in: http://support.mozilla.org/en-US/questions/762570#answer-114800

  • I have printed a number of documents using the new printer (Firefox is supposed to remember the name of the last printer used) -- no change
  • Reset the value field in about:config->print.print_printer -- the entire entry has disappeared and has not been restored after printing a document; also the default printer is not changed
  • Abolished my old printer -- Firefox now defaults to a virtual printer, namely Cups-PDF
  • Set the value field in print.save_print_settings to false -- Firefox still defaults to Cups-PDF

In addition since seeing john99's posting I have:

  • Removed all fields containing 'user_pref("print.' from the prefs.jf file -- Firefox still defaults to Cups-PDF
  • Removed all fields containing 'user_pref("printer_' from the prefs.jf file -- Firefox still defaults to Cups-PDF

The new printer, once selected, works perfectly. Other applications default to the new printer.

What's going on? How can I change the default printer to the value I want?

Question owner

For added weirdness, immediately after selecting "Print" the default printer, "Cups-PDF" is greyed out, and the Print button is inactive. After selecting another printer, say "Print to File", "Cups-PDF" becomes active.

Marco Antonio Blanco 0 solutions 1 answers

I had the same problem with cups-pdf being the default printer (even though it wasn't at server level) but it wasn't related only to Firefox but to each and every program that printed through CUPS, even KDE. I finally solved it opening the file ~/.cups/lpoptions and deleting the line that said "Default PDF". That's all!