Rate this page del.icio.us  Digg slashdot StumbleUpon

Tips and tricks: How can I configure Firefox to use the KDE print system?

by the editorial team

Firefox has built-in configuration variables to deal with external printing commands.  Per default, it uses the UNIX lpr command to send print jobs to the printer.  This setting can be overridden by the user by doing the following:

  • In the Firefox location bar, enter about:config
  • Once the list of configuration values is shown, right-click on an item in the list and choose New->String
  • In the first box, Firefox asks for the preference name.  Enter print.printer_PostScript/default.print_command (upper- and lowercase are important!), and click OK
  • In the second box, enter kprinter as the default print command.

Whenever Firefox prints, choose the printer named "PostScript/default".  The output will be handled by the KDE printing system, allowing advanced features like creating PDF files and faxing.

Red Hat’s customer service and support teams receive technical support questions from users all over the world. Red Hat technicians add the questions and answers to Red Hat Knowledgebase on a daily basis. Access to Red Hat Knowledgebase is free. Every month, Red Hat Magazine offers a preview into the Red Hat Knowledgebase by highlighting some of the most recent entries. The information provided in this article is for your information only. The origin of this information may be internal or external to Red Hat. While Red Hat attempts to verify the validity of this information before it is posted, Red Hat makes no express or implied claims to its validity.

5 responses to “Tips and tricks: How can I configure Firefox to use the KDE print system?”

  1. Laika says:

    I’ve also seen some people suggest to use “kprinter –stdin” instead for non-KDE applications. In my experience, both “kprinter” and “kprinter –stdin” seem to work equally well. Any idea which command would be preferable?

  2. Kurt Pfeifle says:

    Ha!,

    I’ve currently a 80% completed draft for blog posting sitting on my harddisk waiting for completion with exactly the same topic (will be a bit more detailled).

    Laika,

    the “–stdin” addition was required by an early version of kprinter (remember, that KDE utility is around since 2001, with mostly all of its current feature set). Later, autodiscovery of input via stdin was added. Support for an explicitely named ‘–stdin’ parameter was kept for backward compatibility.

    There is not any difference between the two for recent versions of KDE. (But don’t ask me when exactly the auto-detection of stdin input was added….).

  3. Miguel says:

    Ok, very useful thxs!!, and now what about e making Firefox using the default files explorer (instead of the annoying Nautilus)?

    I’m actually discovering that Konqueror is far superior to Firefox and I can’t wait to have Konqueror using Webkit to finally get rid of Firefox.

  4. Allen Dulles says:

    MORE BAD ADVICE FROM REDHAT:

    OK, I just wasted about 30 minutes of my day trying to switch from the worthless Gnome print dialog to the useful KDE print dialog (on the current REDHAT EL5 Firefox 1.5).

    The above instructions are worthless, and I found at least 4 print.*.command variables. I switched all of them to kprinter, but it doesn’t work. Typical broken REDHAT Linux.

    I even found a variable “print.print.printer”. Now, that’s funny, and it makes me wonder what kind of incompetent programmers work for Mozilla. REDHAT EL5 is a mess.

  5. HerSam says:

    Thanks, it’s very helpfull, I have been finding for this for long time.
    Just for some second’s, now I can get kprinter option to print from Firefox, … just very easy to create PDF files.
    Previously I need to create ps file before use ps2pdf to converted it.
    Anyway Thank you so much
    GBU
    Samuel

Leave a reply