mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 22:47:59 +01:00
Use the services cache in liberator.profileName.
This commit is contained in:
@@ -608,11 +608,10 @@ const liberator = (function () //{{{
|
|||||||
// ###VERSION### and ###DATE### are replaced by the Makefile
|
// ###VERSION### and ###DATE### are replaced by the Makefile
|
||||||
version: "###VERSION### (created: ###DATE###)",
|
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,
|
// If default profile Firefox runs without arguments,
|
||||||
// then selectedProfile returns last selected profile! (not current one!)
|
// then selectedProfile returns last selected profile! (not current one!)
|
||||||
profileName: Cc["@mozilla.org/file/directory_service;1"].getService(Ci.nsIProperties)
|
profileName: services.get("directory").get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, ""),
|
||||||
.get("ProfD", Ci.nsIFile).leafName.replace(/^.+?\./, ""),
|
|
||||||
|
|
||||||
// TODO: move to events.js?
|
// TODO: move to events.js?
|
||||||
input: {
|
input: {
|
||||||
|
|||||||
Reference in New Issue
Block a user