PC-BSD: Firefox opening files in Default KDE application
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.
Comments
-
Tweets that mention Dramashack! » FreeNAS 0.8 is Highly Experimental, Proceed with Caution! -- Topsy.com
[...] This post was mentioned on Twitter by Denise and Denise, James T. Nixon III. James T. Nixon III said: Blog: Understanding the new FreeNAS UI – http://bit.ly/cgocM5 #freenas #django #freebsd [...]
-
James T. Nixon III
Lol, I know right!?
-
Matt Olander
Great pix, James! Haha, that’s ironic that ISC, a customer of iX, won the server! PERFECT
-
alan
One Question Habra version The 3 cds of the PC-BSD 8.0 Hubble Edition
-
Shaul
I would have to completely disagree with what you say how good PC-BSD is. And for the record, I do not use Linux, I do not have Linux installed on any systems. With the code they develop on top of FreeBSD for PC-BSD has consistency issue, and just don’t think they pay close enough attention to code correctness, I think it gets sluggish. Although my first choice is always to use OpenBSD on everything, I have set up FreeBSD as a desktop system. All I do is select minimal install, populate ports and source, patch the system, compile KDE4 from ports, and I find everything runs better and quicker that way. Once Firefox has been compiled from ports, I have seen it load instantaneously when you select it from KMenu. With PCBSD being developed for people who don’t know any tech stuff, and their own lack of proper auditing of code in the manner of say OpenBSD, I see definite performance issues, and some speed issues. I think it just gets bogged down. So that is why I would definitely disagree with what you say about how good PC-BSD is.