1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-15 09:25:45 +01:00

When setting rtp on startup, set VIMPERATOR_RUNTIME to match if it doesn't already exist.

This commit is contained in:
Ted Pavlic
2008-12-30 10:10:37 -05:00
parent 5b0d6674db
commit 5d8d61cc01
2 changed files with 11 additions and 2 deletions

View File

@@ -922,8 +922,14 @@ lookup:
}; //}}}
IO.__defineGetter__("runtimePath", function () services.get("environment").get(config.name.toUpperCase() + "_RUNTIME") ||
"~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase());
IO.__defineGetter__("runtimePath", function () {
let getrtp = services.get("environment").get(config.name.toUpperCase() + "_RUNTIME");
if( ! getrtp )
{
getrtp = "~/" + (liberator.has("Win32") ? "" : ".") + config.name.toLowerCase();
services.get("environment").set(config.name.toUpperCase() + "_RUNTIME", getrtp);
}
return getrtp; });
IO.expandPath = function (path, relative)
{