Tell me more ×
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 ICS files when I open them. In a way analogous 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, which can manually be achieved by, when on Google Calendar, clicking the small arrow next to Other Calendars, then choosing Import Calendar, picking the appropriate 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

1 Answer

up vote 2 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

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.