Firefox and KDE: Open Containing Folder in Konqueror

I’m in a frenzy to change every Gnome related menus and windows, as i find them extremely ugly and useless, for the much better Konqueror and KDE open file style windows in my Firefox.

The other day I managed to change the open file menu using the KGtk application, now I’m going to change the “Open Containing Folder”, available in the right clicking menu, over a downloaded file in the download manager window.

Click on the link below to continue reading…

First we open the kfmclient_dir.desktop file, as the location of this file changes according to the distribution, we should do a search first:

locate kfmclient_dir.desktop

Then, when we have the full path, we edit it using our favorite editor (vim in my case), you should replace it for your choice and correct the path:

vim /opt/kde/share/applications/kde/kfmclient_dir.desktop

Once inside the file we edit the line that says:

MimeType=inode/directory

And modify it so it looks like this:

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

Then we go and edit the nautilus-folder-handler.desktop, again, you should run locate, find the correct path, and open it with your favorite editor:

vim /opt/gnome/share/applications/nautilus-folder-handler.desktop

And replace this line:

Exec=nautilus –no-desktop %U

With this one:

Exec=kfmclient openURL %u inode/directory

Thats it!
Now the “Open Containing Folder” menu will pop up a Konqueror Window showing the download directory.

You should keep in mind that I have Gnome installed (and so, I have Nautilus), so, before doing this, you should install Nautilus (and dependencies if asked), and after you make this changes, you can uninstall it. It should work this way too. Leave a comment about it if you do this!

Also, notice that this might disable Nautilus from handling directories, so if you return to Gnome (why would someone do that, I don’t know!) , you should undo this changes.

Sources:

http://www.daniweb.com/techtalkforums/thread26460.html

http://www.ubuntuforums.org/showthread.php?t=118096