From 7e2461cd904a3f90d85a29eca8fd962003a196bf Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 3 Jan 2009 22:34:58 +1100 Subject: [PATCH] Use the services cache in liberator.profileName. --- common/content/liberator.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/content/liberator.js b/common/content/liberator.js index 903718bc..13d5089e 100644 --- a/common/content/liberator.js +++ b/common/content/liberator.js @@ -608,11 +608,10 @@ const liberator = (function () //{{{ // ###VERSION### and ###DATE### are replaced by the Makefile version: "###VERSION### (created: ###DATE###)", - // services.get("profile").selectedProfile.name is not rightness. + // NOTE: services.get("profile").selectedProfile.name is not rightness. // If default profile Firefox runs without arguments, // then selectedProfile returns last selected profile! (not current one!) - profileName: Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties) - .get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, ""), + profileName: services.get("directory").get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, ""), // TODO: move to events.js? input: {