Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like for Google Calendar to open URIs with the Webcal (wikipedia) scheme (delivering ICS files), similar to how Gmail can be set to be the default handler for mailto: links.

More specifically, I would like for Google Calendar to import them to my primary calendar. (You can manually import an ICS file in Google Calendar by clicking the small arrow next to Other calendars, choosing Import calendar from the drop-down list, navigating to the .ICS file, and choosing Import.)

I don't know if this is possible, but I'm hoping somebody will have a great idea.

share|improve this question
up vote 11 down vote accepted


The chromium browser offers this option when you first log in to Google Calendar:

Google Calendar in Chromium browser offers to handle webcal protocols

If you have accidentally answered with No on this question, you can press the Wrench toolbar button and go to Settings. Click Show advanced settings, find Content settings... (just after Privacy header) and find the Manage handlers button. Click the X next to the ignored protocol you wish to delete. Alternatively, you can type in protocol handlers search box in Chromium settings.See the screenshot below.

Undo ignore protocol handler in Chromium browser


I found this post on stackexchange which explains how to achieve the same thing in Firefox, but this doesn't work for me on firefox 12 and 15: this works for me if I disable the Never save history option (Private browsing mode):

Go to Google Calendar's site and press Ctrl+Shift+K.

Paste this after the > sign:

navigator.registerProtocolHandler("webcal","","Google Calendar");

Press the enter key and click the Add application button which should appear below the toolbar.

Firefox console

Firefox accept protocol hanlder

You may need to toggle the gecko.handlerService.allowRegisterFromDifferentHost option in about:config to true before trying this (if google redirects you to a local google domain). Remember to return it to false after calling the registerProtocolHandler function because malicious sites may exploit this. See details here.

share|improve this answer
Personally, I'm looking for the option for Chrome/Chromium. In case one did not react properly on first log-in, are there options open? – Rasmus Sep 3 '12 at 21:11
Yes, you can delete an ignored protocol handler. See my edited answer! – jeremija Sep 4 '12 at 6:57
I found that I need to put javascript:navigator.registerProtocolHandler("webcal","‌​alendar/render?cid=%s","Google Calendar"); in the location bar in Google Chrome to get it to work. – Mikko Rantalainen Nov 30 '12 at 12:00
I tried the Firefox solution but when clicking on a .ics file i get the pop up to store or open with gedit (as it's a VCS/ICS file) any tip on this? btw mention a similar solution. – TiloBunt Aug 28 '13 at 5:35
here a test ics (found it during my googling for a solutions)… – TiloBunt Aug 28 '13 at 5:40

In newer versions of Chromium/Chrome, you need to login to google calendar and click the overlapped diamond icon in the address bar.


Select "Use Google Calendar", then click done. This will register google calendar as a handler for webcal links.

You may need to set Chromium to allow sites to become default protocol handlers. You can do so via :

  1. Advanced settings -> Privacy, Content Settings -> Handlers
  2. Select "Allow sites to ask to become default handlers for protocols"
share|improve this answer

Since I came across the same question as the OP and things have changed since the accepted answer was posted, I thought I'd share my findings. The following instructions are mainly for Firefox, but apart from little differences they should work in Chrome, too.

  1. Navigate to Google Calendar.
  2. Open up Firefox's console by pressing CTRL + SHIFT + K.
  3. At the prompt (which is located at the bottom of the overlay window), insert the following command and press ENTER (don't add whitespaces as it breaks the command):

    javascript:window.navigator.registerProtocolHandler("webcal","","Google Calendar");
  4. Click the Add application button at the right of the appearing notification bar (just below the url bar which is also called "awesome bar").
  5. Go to Firefox's options for associated applications by consecutively clicking the , ⚙ Options and 🚀 Applications menu options.
  6. Search within the list for webcal by either typing it into the search box above the list in order to filter it or by scrolling the list.
  7. Double-click the right half of the entry to enable and open the drop-down menu.
  8. Click Use Google Calendar (or whatever name you chose by modifying the command at instruction #3) to select and also save that handler immediately.

HTH. If not, just leave a comment below.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.