Linux Mint add Google Calendar on your desktop

There is no doubt that Google Calendar is one of the most popular calendars. If you don't like the idea to open it each time in order to get information for your events for the week than you can simply add it to your desktop. It can be done in 5 minutes. You can see the steps in this article:

Video tutorial

This is the official page of the desklet:

Google Calendar

This is the description of this desklet:

View your upcoming calendar events on your Cinnamon Desktop. This desklet uses google-api-python-client to pull events from Google Calendar. You can configure every aspect of the desklet using the configure dialog.

google_calendar_linux_mint-1

How to add it to your Linux Mint (Test it with Linux Mint 19.1)

  1. Add Google Calendar desklet

    • Right click on your desktop
    • Add desklets
    • Download
    • Download Google Calendar
  2. Install dependencies using the following command:

sudo apt install python3-pip python3-setuptools python3-dateutil python3-oauth2client python3-googleapi
  1. Install Python modules using the following command(python-dateutil, google-api-python-client and oauth2client):
sudo pip3 install --upgrade python-dateutil google-api-python-client oauth2client
  1. Default browser should get a Google Authentication page asking for reading permission. Allow the "Cinnamon Google Calendar Desklet" to read your Google Calendar events.

Note: If nothing happens(the screen just blink) or there is a warning sign in the "Desklets" dialog, try to remove and add the desklet again.

If it doesn't work, a system restart may help the desklet to detect google-api-python-client.

Another way to solve the not working desklet is by running this command in terminal:

python3 ~/.local/share/cinnamon/desklets/googleCalendar@javahelps.com/py/google_calendar.py --list-calendars

If you see message like this:

Falling back to --noauth_local_webserver and continuing with
authorization.


Go to the following link in your browser:

    https://accounts.google.com/o/oauth2/auth?client_id=XXXXXX

Then you can visit the link in order to authorize the app to read events from your Google Calendar.

In case of success you will see your calendars like:

mymail@gmail.com
Contacts
Holidays in Bulgaria

Related Article