rem: const JS_DIR_UTILS_DIR                  = new Components.Constructor( JS_DIR_UTILS_FILE_DIR_CID, JS_DIR_UTILS_I_PROPS);  const JS_DIR_UTILS_NSIFILE                  = Components.interfaces.nsIFile;  var rv; 
add: profileFile.append("CalendarDataFile.ics");  this.gICalLib.setServer( profileFile.path ); 
context: function CalendarEventDataSource( observer, UserPath, syncPath ){      try {          var iCalLibComponent = Components.classes["@mozilla.org/ical;1"].createInstance();      } catch ( e ) {          alert( "The ICAL Componenet is not registered properly. Please follow the instructions below:\n"+				 "Windows Users:\n"+				 "-Please quit Mozilla, run regxpcom and run Mozilla again.\n\n"+				 "Linux users:\n"+				 "1)Make sure you have write access to the component.reg file.\n"+				 "2)Make sure libical is installed properly. (See http://www.mozilla.org/projects/calendar/ for detailed instructions)\n"+				 "3)Quit Mozilla, cd to your mozilla/bin directory. Run ./regxpcom and run Mozilla again.\n"+				 "Note: If you get this error:\n"+				 "'./regxpcom: error while loading shared libraries: libxpcom.so: cannot open\n"+				 "shared object file: No such file or directory',\n"+				 "set LD_LIBRARY_PATH and MOZILLA_FIVE_HOME to your mozilla/bin directory first.\n"+                 "Example: export LD_LIBRARY_PATH=/home/user/mozilla/dist/bin\n"+				 "Example: export MOZILLA_FIVE_HOME=/home/user/mozilla/dist/bin\n\n"+				 "If these instructions don't solve the problem, please add yourself to the cc list of\n"+				 "bug 134432 at http://bugzilla.mozilla.org/show_bug.cgi?id=134432.\n"+				 "and give more feedback on your platform, Mozilla version, calendar install type:\n"+				 "(build or xpi), any errors you see on the console that you think is related and any\n"+				 " other problems you come across when following the above insructions.\n" );      }                  this.gICalLib = iCalLibComponent.QueryInterface(Components.interfaces.oeIICal);              /*      ** FROM HERE TO "<<HERE" IS A HACK FROM JSLIB, REPLACE THIS IF YOU KNOW HOW      */      const JS_DIR_UTILS_FILE_DIR_CID             = "@mozilla.org/file/directory_service;1";            const JS_DIR_UTILS_I_PROPS                  = "nsIProperties";            const JS_DIR_UTILS_DIR                  = new Components.Constructor(                                                JS_DIR_UTILS_FILE_DIR_CID,                                                JS_DIR_UTILS_I_PROPS);            const JS_DIR_UTILS_NSIFILE                  = Components.interfaces.nsIFile;            var rv;      try { rv=(new JS_DIR_UTILS_DIR()).get("ProfD", JS_DIR_UTILS_NSIFILE).path; }            catch (e)      {       dump("ERROR! IN CALENDAR EVENT.JS");       rv=null;      }            /*      ** <<HERE      */      this.UserPath = rv;      this.gICalLib.setServer( this.UserPath+"/CalendarDataFile.ics" );            this.gICalLib.addObserver( observer );            this.prepareAlarms( );      this.onlyFutureEvents = false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e8e6a32b14a21ecb71fd6261658203291a642eff/calendarEvent.js/buggy/calendar/resources/content/calendarEvent.js