From Birnam Designs Wiki
To edit the global preferred application for a filetype, add a new line to /usr/share/applications/defaults.list
For a user-specific preferred app, modify ~/.local/share/applications/defaults.list instead. This file might not exist yet.