Talk:HOWTO Integrate Firefox with KDE

From Gentoo Linux Wiki

Jump to: navigation, search

I couldn't find a page like this anywhere, so I am making one. Feel free to help. --Terrible Tim 22:57, 20 Jun 2005 (GMT)


  • Plastik buttons I removed this because I can't get it to work. If anybody does, tell us how you did and put it back


It works very well with http://www.kde-look.org/content/show.php?content=11442 and firefox 1.0.7

Contents

[edit] Other things (untested)

  • Kget integration Testing soon with firefox 1.0.7
  • KDialogs for save as Do not work with firefox newer 0.9 :-(
  • KDE printing in Mozilla Work!
  • [1] Using default GTK open dialogs, rather than Gnome ones.
  • Um, anyhow have the instructions for using Kprint with Bon Echo / Firefox 2 ? The config strings seem to have changed.

[edit] Download: open dir / open file

Alright, this is annoying. Searching everything for it... if somebody knows how to do it, please add it. I'm talking about making the "Open" links and the Downloads folder button work in the download manager to open in KDE. The binding is really simple 'kfmclient exec %s', but where to put it and how? If you write it here, you're god.

[edit] Things already tried

  • If you install nautilus, firefox will use it (I know not very useful).
  • If you don't have nautilus installed, and think you might be able to put a shell-script where the nautilus executable would normally be, don't bother, didn't work.

[edit] Solution

in about:config, add a string network.protocol-handler.app.file and set it to konqueror. Maybe some wrapper script will make it work with 'kfmclient exec': url passed seems different between kfmclient and firefox. Lloeki

[edit] Solution #2

Firefox passes the whole file path (including "file:///") as an argument and 'kfmclient exec' accepts it. So changing network.protocol-handler.app.file value to your script should solve the problem.

Note: Simply setting network.protocol-handler.app.file = "kfmclient exec" didn't work for me. But when I put:
kfmclient exec $1
in a separate script it did work.

[edit] Solution #3

network.protocol-handler.app.file = "konqueror"

[edit] Solution #4

This will work for the downloads folder button but will not change the "Open" in the Download dialog.

Locate this file "kfmclient_dir.desktop" and change:

MimeType=inode/directory

to:

MimeType=inode/directory;x-directory/gnome-default-handler


Then locate this file "nautilus-folder-handler.desktop" or "gnome-nautilus-folder-handler.desktop" and change:

Exec=nautilus –no-desktop %U

to:

Exec=kfmclient openURL %u inode/directory

(You can comment '#' and keep the original line in case you want to revert back)

[edit] Solution #2 Explained

Create a file called kfmClientExecScript with some editor, like nano or vim:

File: kfmClientExecScript
#!/bin/bash
kfmclient exec $1

Then, save it and make chmod +x kfmClientExecScript You can try it by typing:

Code: shell
someone@localhost ~ $ kfmClientExecScript .

at shell and this should open your file manager. If this is happening, then, sudo and copy this file to /usr/bin

Code: shell
someone@localhost ~ $
Password:
localhost someone # pwd
/home/someone
localhost someone # mv /home/someone/kfmClientExecScript /usr/bin -v
`/home/someone/kfmClientExecScript' -> `/usr/bin/kfmClientExecScript'

Now, go to firefox and create the new key network.protocol-handler.app.file, type string and make its value equal to kfmClientExecScript.

network.protocol-handler.app.file = "kfmClientExecScript"

and voilá :) --Lond 22:10, 6 May 2008 (UTC)

[edit] Integrated language

How can I integrate the language in Firefox with KDE? i.e, when I change the language In the KDE control center to French, the Firefox menu would change to French too.

[edit] Using KGTK instead of the Built-in File Dialog

I see that the article suggests disabling the gtk/gnome file dialog in favor of the built-in file dialog. Would it not be better to recommend KGtk instead?

KGtk actually replaces the GTK file dialog with a KDE file dialog. It also works for a number of other GTK-based programs. (There's a list on the kde-apps page)

kgtk-0.8 is in portage, (at the time of this edit) keyword masked on x86, ppc, and amd64.

[edit] 2.0

I am thinking that we should split this page into sections by version, since many of the items we linked to no longer work in ff 2.0 (diggler, plastik, etc.) Thoughts? --Terrible Tim 15:44, 19 January 2007 (UTC)

[edit] disabling GTK file choosers

The instructions given in the article to disable the GTK file chooser in Firefox 1.5 also work in Thunderbird 1.5.

It's true that this may be automatically achieved using kgtk-wrapper, but that is only useful to KDE users.

IMHO a new page (TIP?) should be created explaining how to disable the GTK+ file chooser in firefox and thunderbird.

Personal tools