To add any program in the list of default list of open with applications, open a terminal and use the following command:
sudo gedit /usr/share/applications/XXX.desktop
Please note two things. In XXX.desktop, XXX is the name of your application. And then use of gedit. You can use any other editor. I used Vim. If you use Gedit, it will dispaly some warning messages in the terminal but will open the file in a GUI.
In this desktop file, look for a line that looks like this:
Exec=XXX
If you have something like this, replace this line with:
Exec=XXX %F