mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 03:54:13 +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);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@@ -92,9 +92,9 @@ function startup(data, reason) {
|
||||
|
||||
if (basePath.isDirectory())
|
||||
getURI = function getURI(path) {
|
||||
let file = basePath.clone().QueryInterface(Ci.nsILocalFile);
|
||||
file.appendRelativePath(path);
|
||||
return Services.io.newFileURI(file);
|
||||
let uri = Services.io.newFileURI(basePath);
|
||||
uri.path += path;
|
||||
return Services.io.newFileURI(uri.QueryInterface(Ci.nsIFileURL).file);
|
||||
};
|
||||
else
|
||||
getURI = function getURI(path)
|
||||
|
||||
Reference in New Issue
Block a user