Help, Adobe Air for Linux ate my mimetypes?

April 2nd, 2008

**note** - I would have posted this in the bug list, but I can’t find it, the link from the FAQ just goes to the products page?

**fixed** - Ashutosh from Adobe provided a working fix in the comments below, nice one!

After installing the new Alpha of Adobe Air for Linux yesterday on Ubuntu 7.1 the mime types for .zip files seem to be broken and I can’t figure out how to fix them. When I clicked on a standard .zip file it used to open in FileRoller, it now gives me an error that the filename indicates it’s a zip but the contents indicate it’s an Air Application. I need to use ‘Open With’ to select FileRoller. Not the end of the world but a bit of a pain. Also, the files have a zip icon but this changes to a .air icon when I click it.

Poking around a bit I found xdg-mime included in the files installed with Air (side note, why? I’ve already got these installed, isn’t that the point of using the package manager to install this stuff?) and also an accompanying AdobeAir.xml file…

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
 
  <mime-type type="application/vnd.adobe.air-application-installer-package+zip">
    <comment>Adobe AIR Application</comment>
    <glob pattern="*.air"/>
    <magic priority="100">
      <match type="string" value="PK\003\004" offset="0"/>
    </magic>
  </mime-type>
</mime-info>

…not sure what the magic stuff does but it looks ok? Also testing with xdg-mime seems to point to the mime types being correct?

adam@ubuntu:~$ xdg-mime query filetype ~/Desktop/08_04_02.zip 
application/zip
adam@ubuntu:~$ xdg-mime query default application/zip
file-roller.desktop
adam@ubuntu:~$ xdg-mime query default application/vnd.adobe.air-application-installer-package+zip
AdobeAIR.desktop

There’s also an air.mime file that also looks ok to me..

application/vnd.adobe.air-application-installer-package+zip
        ext: air

I’ve also just spotted, the files have been simlinked incorrectly into /usr/share/mime-info/ …

ls -la /usr/share/mime-info/air.*
 
adam@ubuntu:~$ ls -la /usr/share/mime-info/
lrwxrwxrwx   1 root root      54 2008-03-31 20:26 air.keys -> /opt/Adobe AIR/Versions/1.0/xdg-utils/support/air.keys
lrwxrwxrwx   1 root root      54 2008-03-31 20:26 air.mime -> /opt/Adobe AIR/Versions/1.0/xdg-utils/support/air.mime

the links should be to /opt/Adobe AIR/Versions/1.0/support/* , no xdg-utils, so I’ve tried …

adam@ubuntu:~$ sudo unlink /usr/share/mime-info/air.keys 
adam@ubuntu:~$ sudo unlink /usr/share/mime-info/air.mime 
adam@ubuntu:~$ sudo ln -s /opt/Adobe\ AIR/Versions/1.0/support/air.keys /usr/share/mime-info/air.keys 
adam@ubuntu:~$ sudo ln -s /opt/Adobe\ AIR/Versions/1.0/support/air.mime /usr/share/mime-info/air.mime

but this doesn’t seem to fix anything. Any other ideas anyone?

———
note to self, may be time to look at a liquid layout for the blog :)

FB3A3 & Air for Linux on Labs

March 31st, 2008

check me and the power I wield… no sooner had I had a little moan about FB3A2 expiring than we get not one but 2 new toys on Labs…

Flex Builder 3 Alpha 3 for Linux and
Air for Linux Alpha

According to the FB release notes nothing much has changed except the addition of Air support, but at least I can keep on working without it expiring.

FlexBuilder on Linux… what’s happening?

March 12th, 2008

I’ve been using FlexBuilder on Ubuntu for several months now, it’s got it’s oddities and the design view is missing but it mostly works fine. I’m currently using Alpha2, and it’s now telling me it runs out in 18 days. The fcsh says it will expire in 3 days. The discussion group on Labs seems to have been wiped recently and there’s zero feedback from Adobe there. There is currently no option to buy FB for linux on the Adobe site.

So Adobe, what’s going on? Is there going to be an A3? B1? Are we ever gonna get design view? When can I buy the damn thing? Is anybody out there??

Wubi - the easiest way to install Ubuntu

September 3rd, 2007

Now this is cool… If you are running Windows and would like to try Ubuntu, your first step is to load up the ‘Live Cd’. All well and good, and you get a nice working system with no work and no messing with your Windows partitions, but as it’s running of a CD you loose all your changes each time you reboot. The next step, installing Ubuntu to a drive, used to involve messing with partitions, installing boot-loaders and ultimately risking loosing everything if the great hard-drive gods were angry with you.

The solution? Wubi!

wubi.jpg

Wubi lets you install a complete, fully working Ubuntu system into a standard file held inside your Windows file system. After installing and rebooting it will add a new ‘Ubuntu’ entry to the Windows boot menu, choosing this will boot your new Ubuntu system. No partitions to setup, no Grub or messing with the windows boot loader. If you decide you want to remove Ubuntu you simply run the uninstaller in Windows and away it goes!

Even better, if you decide you want to switch over to Ubuntu fully at a later date you can use the complimentary ‘LVPM’ tool to move your virtual disk to a real partition and install Grub, and in 10 minutes you have a full standalone Ubuntu install. You can then delete the Wubi virtual drive from Windows, or even easier, remove Windows :)

LFPUG Linux Presentation Slides

January 30th, 2007
flinux.jpg

Way back in November last year I did a presentation at the London Flash Platform Usergroup. I ran through a quick intro to Linux, what makes it different, and why you may (or may not) want to try it out, as well as giving a demo of my Beryl desktop.

I also showed how to install the (back then brand new) Beta Linux Flash Player, and how to set up a completely Open Source Flash development environment using Eclipse, MTASC & ASDT.

I had a lot of fun doing the pres, and gave out a whole stack of Ubuntu CD’s afterwards. The slides were supposed to go up on the LFPUG site at the same time as the video, but that all got rather delayed… so I thought I’d post my slides here instead. Better late than never :)


Download “Getting Flash on Linux” presentation slides

(The useful Flash info is from about slide 17 onwards)

Edit - the video is up on the LFPUG site too now, bit dark but check it out