Oct 18 2004

podlet: iPod detection

Published by Adam at 8:24 pm under ,, , ,

I finished writing the iPod auto-detection code tonight, which means i’m almost ready to move on to syncronization.

This was a fun bit of code to work on. It was my first time working with Gnome-VFS. It took a little while to get the perl binding to work. That ended up being an old version of the library in Debian. Once I installed the latest version, it worked like a charm.


stone@moradin:~/src/internal/podlet/tests$ ./ipod_detect.pl
iPod detected at /dev/sda2

Essentially, it gets a list of all mounted volumes and iterates through them, checking for the existance of the iTunesDB on the volume. When it finds the file, we’ve found the iPod. I have to add a couple signals to detect insertion and removable of volumes and I can call this piece done.

3 Responses to “podlet: iPod detection”

  1. Haliganon 19 Oct 2004 at 11:31 am

    I’m looking forward to the release. I use a linux workstation at work now and would love to have the sync features your talking about.

  2. Woohoo!on 19 Oct 2004 at 9:06 pm

    I just got my free iPod in the mail today so I’ll be glad to use this program. :)
    Oh, if anyone else needs to get referalls for their ipods or wants to get a free ipod, try my tool.

    Good luck guys!

  3. Joeyon 22 Nov 2004 at 4:44 pm

    Check out this conga if you haven’t signed up yet. It goes really fast and is the best I’ve seen!!!

Trackback URI | Comments RSS

Leave a Reply