mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Fixed bug with having to specify your home directory.
This commit is contained in:
parent
4fab1156a9
commit
ecdeba0de6
@ -43,8 +43,11 @@ function penroot()
|
||||
this.OpenWindows = new Array();
|
||||
|
||||
// global calendar
|
||||
this.gCalendarEventDataSource = new CalendarEventDataSource( null, "/home/mikep" );
|
||||
|
||||
var dirServiceProvider = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIDirectoryServiceProvider);
|
||||
var persistent = new Object();
|
||||
var homeDir = dirServiceProvider.getFile("Home", persistent);
|
||||
|
||||
this.gCalendarEventDataSource = new CalendarEventDataSource( null, homeDir.unicodePath );
|
||||
}
|
||||
|
||||
penroot.prototype.getAppNum = function (AppName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user