Friday, June 27, 2008

Changing the default application to open up your iPod , or any device / file-type.

So I saw this question up on the forums ( ), and I though about finding out what was causing this problem. So far I have found a small fix, with a minor issue and I'll go into that later in this How-To.

In order to associate and application ( like Songbird, Amarok ) with a file-type or device ( iPod, PNG, JPEG). The only thing is that the application we want to perform our task HAS to have a desktop entry ( Songbird.desktop ) located in the /usr/share/applications/directory. The file-type or device has to have a mime-type inside of /usr/share/mime directory ( e.g, /usr/share/mime/images/png.xml). The file that directs what application will open what file-types, is mimeapps.list. A file inside of ~/.local/share/applications/.

<<< Adding the proper entry >>>

Always start safe, and make sure you can fix yourself in case you screw something up.
So we are going to start by making a copy of the current mimeapps.list file.

cp ~/.local/share/applications/mimeapps.list ~/.local/share/applications/mimeapps.list.backup

Next open up the file with a text editor so that we can add our custom entry. You can change gedit for your favorite text editor.

sudo gedit ~/.local/share/applications/mimeapps.list

Add/Change the correct entry. In my case I had to add another entry since there was no entry
other than an entry from totem media player.

[Added Associations]

To find out what $NEW_APP.desktop should be ( if necessary ).

ls /usr/share/applications/*.desktop | sed -e "s@/usr/share/applications/@@g" | less

Look for the name of the application you are using. So for this scenario I'm using songbird.
I ran the above command
and I was able to find in the list the applications desktop entry, it was Songbird.desktop

Next you have to figure out $MIME_TYPE ( if necessary )

find /usr/share/mime/ -mindepth 2 -maxdepth 2 -name "*" | sed -e "s@/usr/share/mime/@@g" -e "s@[.]xml@@g" | less

Keep in mind if you are changing this for a media player the entry is going to be

In the end your new entry should look like this. Using Songbird as the choice of application
to handle the iPod.

[Added Associations]

note: I had to make a new entry, don't change anything if it doesn't not pertain to iPod or Real Player control. In example
if the $MIME_TYPE doesn't match x-content/audio-player don't touch it.

Save the file, and restart nautilus by doing


killall nautilus

Hope this works for you guys, let me know share it around, or tell me what to do to help
improve it. Appreciate it. I could make a video of my desktop while I do the guide here.
Don't know if that might help you guys better understand.

Thursday, June 26, 2008

Ubuntu 8.04

Well yet again I screw my windows installation up and I find myself running back to Ubuntu.

Last time I left Ubuntu because of the crappy applications that Linux has for managing and iPod. I tried all the applications, from amarok to banshee; nothing was satisfying. Songbird was the all time favorite, but due to it's divine developing stages, the program was unstable and not usable.

The other day I downloaded the installation disk for Ubuntu 8.04, and let me just say congrats to the developers of Ubuntu. Every time the install gets easier, and a lot of things work out of the box. For the first time, my Sound card was recognized and properly configured. Wireless internet went off without a hitch.

There were a couple of hard points, just like using Linux in general. The iPod for some reason wasn't being detected by Amarok, don't know if that's because I installed Ubuntu which leans heavily on GNOME. I installed Amarok, but given that it's a KDE app, not sure if it installed properly on my GNOME dominant computer.

Once again I was dazzled by the many things you can do to "tweak" ubuntu, but at the end of the day I was still worried if I was ready for a full use of Ubuntu, and my need of Windows just because of iTunes ( not that I used it, but MediaMonkey is not available for Linux. ) I remembered writing a tutorial about song bird. Talking about the potential that it had, and this was back when it was still at the .3 version.

Now today I downloaded the .6 version, and let me tell you that it has gone drastic changes. To me so far there are a bit of little bugs here and there, but as far as a standalone application, I think it's getting closer to it's final release. I have yet to connect my iPod and try to sync it and manage it, so I don't want to count my chickens to early.

In conclusion, I think this time I might be moving to Ubuntu for a permanent time. I think by sticking with Songbird I have completely erased all options for going back to Windows. Gaming is not as big for me anymore, most of my gaming has to be done through the PS3. With work and pre-deployment training it's hard to get time to sit down and enjoy a video game. However I hope that when we are in Iraq ( in country ) I will be able to relax.