5

I have the GNOME calendar installed and it works fine.

But there is a problem, it is not the default calendar and I can not select it. In the calendars category, only a text editor is available (apparently by mistake).

I am sure that this is a bug, and really look forward to fixing it in Ubuntu. In the meantime, I hope that someone will tell me how to fix this manually.

enter image description here

muru
  • 193,181
  • 53
  • 473
  • 722
  • 1
    Possible duplicate : [Why is Gedit set as default calendar app in Ubuntu?](https://askubuntu.com/questions/607781/why-is-gedit-set-as-default-calendar-app-in-ubuntu) – dlin Apr 28 '20 at 19:29

4 Answers4

11

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 
Kevin Bowen
  • 19,395
  • 55
  • 76
  • 81
Gábor Békési
  • 111
  • 1
  • 2
3

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
dlin
  • 3,740
  • 3
  • 29
  • 45
2

What worked for me was:

Open Terminal:

locate mimeapps.list

Find the path starting with home: /home/user_name/.config/mimeapps.list

Then run the below commands.

vim /home/user_name/.config/mimeapps.list

or

gedit /home/user_name/.config/mimeapps.list

(both vim and gedit allow you to edit text files)

paste text/calendar=org.gnome.Calendar.desktop under the last application in the default application list

enter image description here

Save the file and run the below command:

gio mime text/calendar

Note the following enter image description here

And lastly check your default applications under the Ubuntu settings: enter image description here

G Dube
  • 155
  • 2
  • 11
1

This is a bug of gnome. Already fixed in gnome 40 and Ubuntu 21.10.