If you want to go down the custom action path (with a menu entry when you right click on a folder) you can look here and here but changing default application is a more universal solution.