How do I register a file association in Ubuntu
问题 I'm in the process of creating a Ubuntu Installer and I need to register my own file extension I cant find any examples of how to do this. Could people provide me with some script snippets on how to do this? NB: Im using InstallJammer to help me create the installer, which allows me to call external scripts - so that is why a script would be beneficial. 回答1: An InstallJammer installer won't integrate very well with the distribution, but here goes. Use xdg-mime install and xdg-mime default to