View Single Post
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#4
Just a few technical pointers together with the binary and instructions on how to install it.

I'm a bit surprised by how little code is needed to get this far:
Code:
$ wc *.c *.h
  230   484  5082 client.c
  689  1422 20986 footify.c
   51   122  1128 pulse.c
   10    17   169 audio.h
   14    48   449 client.h
Just some 1100 lines of C code.

Also, I had to learn GTK+-2.0 along the way. My last encounter was with GTK-1.2 so much has happened. My general impression is that some things are overly complicated (GtkTreeView, need I say more?) but viewed as a tool kit, it works really well. The Hildon extensions that are available work well and are easy to replace with ordinary GTK components to be able to build on other platforms.

Building the GUI by hand was interesting but I think I'll need to look at some tools soon.

libdespotify is a nice hack in itself. I've had to do some research into how it works to get to where I am now but I think it works well enough. One of the problems that are left is that I wait one second into the song to get the cover art just to avoid some complications. This might very well make the music stop for a little while but I favour this over not getting the cover art at all...

There is an option in despotify to use a local cache for cover art and some meta-data but it's not activated yet since I'm not totally sure how much space it might use. Activating this cache and do some testing is on my TODO list.

So, onwards: Installation instructions:
I've tried to stick to the optified way of doing things even though it's just a tar.gz file. With it you'll get the binary and revision 508 of the despotify library. This is what I use and it works for me.
Code:
cd /home/opt
tar zxf footify-0.0.1.tar.gz
chmod 755 footify/usr/bin/footify.sh
cd /usr/bin
ln -s /home/opt/footify/usr/bin/footify.sh footify
Now you'll be able to start footify from an XTerminal. I'll look into adding an application icon and making it show up in the application list as soon as I get around to building a .deb file.

footify has the following extra dependencies that you'll have to satisfy by installing what is needed unless you've already got it:
Code:
libvorbisfile.so.3 => /usr/lib/libvorbisfile.so.3 (0x40038000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x4007d000)
libogg.so.0 => /usr/lib/libogg.so.0 (0x400ad000)
It's easy to check with the ldd command:
Code:
ldd footify
If all dependencies are ok, you're good to go.

Have a look in the footify.sh script to get an idea about how I point at the despotify library if things just won't work. Perhaps I made a typo somewhere.

Enjoy the music!
Attached Files
File Type: gz footify-0.0.1.tar.gz (65.3 KB, 384 views)

Last edited by Joorin; 2010-05-18 at 21:02. Reason: Forgot the x bit
 

The Following 5 Users Say Thank You to Joorin For This Useful Post: