Changing Default Applications on Ubuntu Linux

Windows and macOS have graphical ways for changing the default programs. On Ubuntu you do it the Linux way by editing a specific file.

  1. Open this file as root with the editor of your choice:

sudo vim /usr/share/applications/defaults.list

  1. Replace all [old application].desktop with [new application].desktop. With this you change the default application for all supported file types.