Re: Configuring Lightning automatically

kfr- <[email protected]> Thu, 19 Feb 2015 11:07:54 -0800 (PST)
Newsgroups gmane.comp.mozilla.devel.calendar
Message-ID <[email protected]>
On Thursday, February 19, 2015 at 9:21:20 AM UTC-6, Philipp Kewisch wrote:
> On 2/19/15 1:47 AM, kfr- wrote:
> > So far, I have figured out how to install addons automatically on windows and linux desktops.
> > 
> > I'm wondering how I can configure lightning automatically with default calendars?
> > 
> 
> 
> Configuring calendars is just a matter of setting the
> calendar.registry.{uuid}.* preferences that are also added when you
> create the calendar manually.
> 
> You can do this using the standard mechanisms, e.g. via distribution/
> folder.
> 
> Philipp

So far, what i'm doing is adding this to thunderbird.cfg which seem to work BUT that means that every user profile will have the same uuid for the users calendar.

defaultPref("calendar.registry.3b3d6e65-f811-fe4b-9c0e-c27668895293.name", env_user + "'s Calendar");
defaultPref("calendar.registry.3b3d6e65-f811-fe4b-9c0e-c27668895293.type", "caldav");
defaultPref("calendar.registry.3b3d6e65-f811-fe4b-9c0e-c27668895293.uri", "https://calendar.server.com/calendar/dav/home/" + env_user + "/calendar/");

Is that the way it is? Is there a better way?