Korganizer & Google calendar

With the release of KDE 4.2 last months, KDE really made a huge leap ahead; it seems like all the hard work that developers were talking about on the mailing lists and forums for over two years finally establishes a fantastic piece of software, with new features rushing in daily.

However, one thing that always annoyed me was that I couldn't get Kontact/Korganizer to work with my Google calendar, something that should actually be working for ages. Today I figured out what the problem was and I'd like to share this in case you run into the same problem.

Note that the following only allows for read access, writing to the calendar fails with a nasty

An unexpected error (404) occurred while attempting to upload http://www.google.com:80/calendar/ical/[...]/basic.ics.


Now, for pure read access, here's what you need to do.
  1. Open Korganizer (or Kontact and go to the "Calendar" section) and make sure that you see the resources (KDE resources installed?). For this, go to Settings -> Sidebar -> Show Resource View.
  2. Don't see anything? Where's your sidebar? I might happen (in fact it did for me) that the sidebar is hidden right next to the calendar itself. To expand, click on the border


    and drag the thing to the right. Then you'll get access to the calendar list.


  3. Click on the '+' sign and add a "Calendar in Remote File".
  4. In the "Download from" and "Upload to" fields, you paste the URL that you get from Google the following way.
    1. Log in to Google calendar.
    2. Click on "Settings" in the "my calendars" section to the left.
    3. Choose the calendar you would like to see in Kontact.
    4. On the bottom of the page, you see two green ICAL icons. If your calendar is private, choose the lower one, if it's public the upper. You'll get a */basic.ics address that you need to use in Kontact.
  5. Adjust the reload and save settings to your liking.
All done!