Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

up vote 7 down vote accepted

Chromium

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

Firefox

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","https://www.google.com/calendar/render?cid=%s","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","https://www.google.com/c‌​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 superuser.com/a/442494/216033 mention a similar solution. –  TiloBunt Aug 28 '13 at 5:35
    
here a test ics (found it during my googling for a solutions) calendar-a-googleproductforums-com.googlegroups.com/attach/… –  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.

Screenshot

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

Note:
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

Your Answer

 
discard

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.