GNOME Bugzilla – Bug 320865
Register iCalendar MIME types
Last modified: 2014-08-30 00:06:08 UTC
evolution-webcal currently only registers to handle the webcal: URL scheme, but doesn't handle the iCalendar MIME type. It should.
Wouldn't it get passed a copy of the downloaded .ics file rather than the URI and so it wouldn't be able to subscribe to the original URI ? (I thought that was one of the reasons for the webcal: URI scheme)
I think if the desktop file says it can load URIs, then Epiphay should Do The Right Thing.
Dammit, I just tried this: [Desktop Entry] Encoding=UTF-8 Name=Evo Webcal Exec=/usr/lib/evolution-webcal/evolution-webcal %u MimeType=text/calendar StartupNotify=true Terminal=false Type=Application And Epiphany is still downloading the file locally before starting evolution-webcal. Personally I consider this an Epiphany bug, the desktop file clearly states it can handle a URL.
I believe you need to use a capital U for the argument. However, evolution-webcal cannot handle iCalendar files that are not on webcal/http/https URIs. Adding a desktop file means that things will also try to pass local files to it, or even files on remote hosts that are samba, sftp, or some other method. This would a bad thing to do. I'm going to say that this is an Epiphany bug if it is not opening webcal: URIs with evolution-webcal. If the URI is actually http or https though, it is probably doing the "right" thing, and trying to use the MIME type only. Yes, MIME and URI handling is still a giant mess. :-/ There is currently no possible way to say "this app only handles this mime type, and only over this transport method". Should this be NOTABUG, WONTFIX, or just moved to Ephinay for them to decide?
%U is list of URLs, %u is a single URL, so it should work. However, Epiphany ignores this and will always download a file, with the rationale that the URL may depend on cookies or HTTP auth. I'd like to see a custom field like MimeType added, say X-UriHandler, so the desktop file can say that it handles text/calendar files on http, https and webcal.
This sounds like something that should be discussed on the xdg list then, and added to the desktop file specification. We also really need a cross-desktop specification for handling URIs in general, so that we don't continue sticking ourselves in the foot with the gconf stuff.
(In reply to comment #5) > %U is list of URLs, %u is a single URL, so it should work. However, Epiphany > ignores this and will always download a file, with the rationale that the URL > may depend on cookies or HTTP auth. Does it work with Firefox? As for the rationale, I guess it's better than nothing for the calendar to be added, and if it doesn't work, evo-webcal will complain straight away. > I'd like to see a custom field like MimeType added, say X-UriHandler, so the > desktop file can say that it handles text/calendar files on http, https and webcal. You're volunteered!
evolution-webcal has not seen any code changes since May 2010: https://git.gnome.org/browse/archive/evolution-webcal/log This project is not under active development anymore and got recently archived in GNOME Git. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.