This tutorial will explain how to change the default applications in Ubuntu 12.04 Precise for a given type of file. For general, head to System Settings -> Details -> Default Applications, there you can change default app to launch web, mail, music, video, photo, etc.