Fuzzy Logic

Because things aren't confusing enough…

Friday, July 11, 2008

Fixing the mime-key error in Filezilla, complements of Adobe AIR

I really like Adobe AIR as a platform, mainly because I generally like the idea of having a platform that can run the same apps on any of the big three Operating Systems (Windows, Mac, Linux).  Unfortunately, after installing the Adobe Air alpha for Linux I was having a problem with an error every time I started up Filezilla.  This would popup on every startup:

"Can't open /usr/share/mime-info/air.keys" (error 2: no such file or directory)"
"Can't open /usr/share/mime-info/air.mime" (error 2: no such file or directory)"

Obviously, this wasn’t the worst thing that could possibly happen to me… but it was rather aggravating!  To solve this problem I went scrounging through the depths of the interblags and finally managed to fix it.  Lots of help comes from the Dusty Pixels blog, but I figured I would compile what worked for me here.

I will copy in these codes directly as I used them (and supress any output).  Please note that I do sudo into root for this fix just to make sure there are no permissions errors–if you wish to go the fully ‘approved’ method, just append sudo on every single command here.

nuke@nuke-laptop:~$ cd /opt/Adobe\ AIR/Versions/1.0/xdg-utils/
nuke@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils$ sudo su
root@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils# xdg-mime uninstall --novendor /opt/Adobe\ AIR/Versions/1.0/support/AdobeAIR.xml
root@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils# sudo nano ../support/AdobeAIR.xml

This step requires that you remove the three lines starting with <magic priority=”100″> and ending with </magic>.

root@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils# xdg-mime install --novendor /opt/Adobe\ AIR/Versions/1.0/support/AdobeAIR.xml
root@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils# sudo unlink /usr/share/mime-info/air.keys
root@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils# sudo unlink /usr/share/mime-info/air.mime
root@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils# sudo ln -s /opt/Adobe\ AIR/Versions/1.0/support/air.keys /usr/share/mime-info/air.keys
root@nuke-laptop:/opt/Adobe AIR/Versions/1.0/xdg-utils# sudo ln -s /opt/Adobe\ AIR/Versions/1.0/support/air.mime /usr/share/mime-info/air.mime

And there you go!  You shouldn’t have any more mime-type errors in Filezilla!

posted by Jason Young at 9:00 am  

4 Comments »

  1. [...] Oggi finalmente mi sono deciso a fare una ricerca su Google ed il problema è sparito grazie alle informazioni trovate in questo post. [...]

    Pingback by » Errori mime-key in Filezilla su Ubuntu 8.04 » pietrodigiorgio.it — July 22, 2008 @ 11:52 am

  2. [...] L’errore era questo: Can’t open /usr/share/mime-info/air.keys” (error 2: no such file or directory) Can’t open /usr/share/mime-info/air.mime” (error 2: no such file or directory) Oggi finalmente mi sono deciso a fare una ricerca su Google ed il problema è sparito grazie alle informazioni trovate in questo post. [...]

    Pingback by Errori mime-key in Filezilla su Ubuntu 8.04 | Yourpage live news aggregator — July 23, 2008 @ 3:27 am

  3. [...] Fuente | Fuzzy Logic [...]

    Pingback by Solucionar conflicto entre Filezilla y Adobe Air | xploit29 — August 31, 2008 @ 12:25 am

  4. [...] version we were using was a buggy version that didn’t have all of the newest features (and was unreliable at that).  With this new release comes the new version for both x86 and x64 [...]

    Pingback by Adobe launches AIR 1.5 for Linux | Fuzzy Logic — December 19, 2008 @ 9:21 am

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress