How to set gnome calendar by default

Solution 1:

An even easier solution would be to set the value with gio itself. Thus, set with the command:

gio mime text/calendar org.gnome.Calendar.desktop

Then check what you just did with the following command:

gio mime text/calendar 

Solution 2:

Try this

gedit /home/yourname/.local/share/applications/mimeapps.list

paste text/calendar=org.gnome.Calendar.desktop at the end of [default applications] and save.

by querying gvfs-mime --query text/calendar

you should get

Default application for 'text/calendar': org.gnome.Calendar.desktop
Registered applications:
        org.gnome.Calendar.desktop