alice-mkh / lightbird

Sunbird UI for Lightning on SeaMonkey
https://addons.mozilla.org/en-US/seamonkey/addon/lightbird/
13 stars 2 forks source link

Wish: provide/expose "-subscribe" command line option and/or integration to launch Calendar on ICS/iCal links #26

Open sphakka opened 8 years ago

sphakka commented 8 years ago

On SeaMonkey-2.40, clicking on an ICS/iCal link (try f.i. "webcal://cave12.org/cave12.ics") brings up the "Open..." dialogue to chose what to do (open with, save, etc.). It would be great, instead, to launch directly the "Subscribe to Remote Calendar" (as per Lightbird's "File" menu entry). This could either be done by providing/exposing (à la Sunbird) a command line "--subscribe" option or, even better, to integrate that action as an "automagic mouse click" [*] / right-click menu option / mouse click + special key.

[*] meaning that the browser shall automagically passe the control to Lightbird without asking -- this should be configurable. Some OS's might already provide a default action on "webcal://" links, which the browser should of course respect.

alice-mkh commented 8 years ago

Added the command line options. "Allowed" would be more precise, since the Sunbird command line code was there, commented out. :) It'll be like this:

seamonkey -calendar -subscribe webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics
seamonkey -calendar -showdate 04/04/2004

There is also

seamonkey -calendar -url webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics

But it's broken, since SeaMonkey would also process -url argument, so you'll end up with a calendar window with the newly added calendar AND a browser window that asks where to save the calendar file.

alice-mkh commented 8 years ago

Of course, I could allow it to work without -calendar, but that conflicts with -url on SeaMonkey and can potentially conflict with something else on Thunderbird.

alice-mkh commented 8 years ago

Released 0.6 with the options.