fix: look for NativeMessagingHosts in Mozilla directory
(cherry picked from commit 82e1a4cffba38b37de698e142b08eeaae8fb179c)
This commit is contained in:
@@ -42,8 +42,12 @@ export var NativeManifests = {
|
|||||||
this._lookup = this._winLookup;
|
this._lookup = this._winLookup;
|
||||||
} else if (platform == "macosx" || platform == "linux") {
|
} else if (platform == "macosx" || platform == "linux") {
|
||||||
let dirs = [
|
let dirs = [
|
||||||
Services.dirsvc.get("XREUserNativeManifests", Ci.nsIFile).path,
|
Services.dirsvc
|
||||||
Services.dirsvc.get("XRESysNativeManifests", Ci.nsIFile).path,
|
.get("XREUserNativeManifests", Ci.nsIFile)
|
||||||
|
.path.replace("Waterfox", "Mozilla"),
|
||||||
|
Services.dirsvc
|
||||||
|
.get("XRESysNativeManifests", Ci.nsIFile)
|
||||||
|
.path.replace("Waterfox", "Mozilla"),
|
||||||
];
|
];
|
||||||
this._lookup = (type, name, context) =>
|
this._lookup = (type, name, context) =>
|
||||||
this._tryPaths(type, name, dirs, context);
|
this._tryPaths(type, name, dirs, context);
|
||||||
|
|||||||
Reference in New Issue
Block a user