mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-08 07:05:44 +01:00
Fix running unpacked on wine. Closes issue #254.
This commit is contained in:
8
common/bootstrap.js
vendored
8
common/bootstrap.js
vendored
@@ -32,7 +32,7 @@ const storage = Cc["@mozilla.org/fuel/application;1"].getService(Ci.fuelIApplica
|
|||||||
let JSMLoader = storage.get("dactyl.JSMLoader", undefined);
|
let JSMLoader = storage.get("dactyl.JSMLoader", undefined);
|
||||||
|
|
||||||
function reportError(e) {
|
function reportError(e) {
|
||||||
dump("dactyl: bootstrap: " + e + "\n" + (e.stack || Error().stack));
|
dump("\ndactyl: bootstrap: " + e + "\n" + (e.stack || Error().stack) + "\n");
|
||||||
Cu.reportError(e);
|
Cu.reportError(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,9 +92,9 @@ function startup(data, reason) {
|
|||||||
|
|
||||||
if (basePath.isDirectory())
|
if (basePath.isDirectory())
|
||||||
getURI = function getURI(path) {
|
getURI = function getURI(path) {
|
||||||
let file = basePath.clone().QueryInterface(Ci.nsILocalFile);
|
let uri = Services.io.newFileURI(basePath);
|
||||||
file.appendRelativePath(path);
|
uri.path += path;
|
||||||
return Services.io.newFileURI(file);
|
return Services.io.newFileURI(uri.QueryInterface(Ci.nsIFileURL).file);
|
||||||
};
|
};
|
||||||
else
|
else
|
||||||
getURI = function getURI(path)
|
getURI = function getURI(path)
|
||||||
|
|||||||
Reference in New Issue
Block a user