个人工具

UbuntuHelp:IntegrateFirefoxWithKDE

来自Ubuntu中文

跳转至: 导航, 搜索

Firefox as KDE default browser

Open the Control Center, in menu KDE Components -> Component Chooser -> Web Browser, click in the following browser and type in firefox In newer versions of Kubuntu, go to the K menu -> System Settings -> Default Application -> click in browser and type firefox -remote "openURL(%u,new-tab)". This command by default will open a link in a new tab in the last Firefox window used.

Appearance and Themes

Theme

Available themes:

Make GTK+ applications use Qt/KDE theme

Enter the command sudo apt-get install gtk-engines-qtpixmap.

Default applications

PDF

Use this command to find kpdf path: which kpdf -> /usr/kde/3.5/bin/kpdf (in example) and then set these paths in Edit -> Preferences -> Downloads -> Filetypes However, if you can't change file types properties in your ff, you can always edit your /etc/mailcap. In order to make kpdf to be your default pdf handler add/change the following line to/in the /etc/mailcap: application/pdf; kpdf '%s'; -n "$DISPLAY" ; nametemplate=%s.pdf

KPrinter

You have to write about:config in the address bar and change here the print.printer_PostScript/default.print_command to kprinter --stdin.
For KPrinter to work, you have to choose Postscript/default (leaving "Print to file" unchecked) and then click the Print button. At this point you will get the KPrinter dialog and be able to print to pdf, postscript, etc, and of course to the real printers.
It is possible to suppress the print dialog so that it looks like it's printing seamlessly via KPrinter by setting the boolean print.always_print_silent to true in about:config. If this option is missing, simply add it. print.printer_PostScript/Default.print_command kprinter --stdin print.always_print_silent true

  • Default papersize to A4

Still in about:config, set these values:
print.printer_PostScript/Default.print_paper_height 297,00 print.printer_PostScript/Default.print_paper_name A4 print.printer_PostScript/Default.print_paper_width 210,00

KGet

Download FlashGot firefox extensions: download
Once installed and Firefox restarted, go in FlashGot preferences and select KDE KGet as default download manager.

Source

Based on HOWTO Integrate Firefox with KDE, a public domain document at Gentoo Wiki.

Links