1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 22:38:00 +01:00

Use the services cache in liberator.profileName.

This commit is contained in:
Doug Kearns
2009-01-03 22:34:58 +11:00
parent 172900fff2
commit 7e2461cd90

View File

@@ -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: {