Something that used to irritate me about using Firefox in KDE is that I cannot open files in the download manager by double-clicking them. Turns out it’s really simple to do. I should make it clear that I am using PC-BSD Hubble Edition 8.0 which is built on FreeBSD 8.0-RELEASE-p2 with KDE 4.3.5, and Firefox 3.5.7 (Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.7) Gecko/20100106 Firefox/3.5.7) . If you’re using Firefox 2, this won’t work.

Open downloads in default KDE application
I put the following in /Programs/bin/openwith and made it executable with: chmod +x /Programs/bin/openwith
#!/bin/sh
kfmclient exec $1
Now save a file in Firefox and double-click it in the download manager, you will be asked what to open the file with. Whatever you choose will be used to open all files in the download manager no matter what mime type. If you have this set to Okular, for example, you’ll notice Okular will try to open all file types.

Firefox Preferences: Edit > Preferences
To change this, open the Firefox Preferences screen by clicking ‘Edit > Preferences’ from the menu. Now click the Applications tab and click the Action Dropdown for content type: file. In my screen shot you’ll see I have it set to ‘openwith’.
You can choose ‘other’, then click ‘File System’ and browse to where you saved the script, in my case, ‘/Programs/bin/’.
This should make the iXsystems front office very happy.



