diff options
author | portix <none@none> | 2012-04-21 21:15:42 +0200 |
---|---|---|
committer | portix <none@none> | 2012-04-21 21:15:42 +0200 |
commit | 754063a58465dd1dd0193a064ffc86c844bbc1c2 (patch) | |
tree | b6d973780bbaa3761702ac024aa46fe09af8f834 /scripts | |
parent | 4a0ecc7b034887815ba378fbabcf939ffe89404b (diff) | |
download | dwb-754063a58465dd1dd0193a064ffc86c844bbc1c2.zip |
stdout/stderr callbacks for system.spawn
--HG--
branch : scripts
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/data.js | 60 | ||||
-rw-r--r-- | scripts/lib/enums.js | 6 |
2 files changed, 66 insertions, 0 deletions
diff --git a/scripts/lib/data.js b/scripts/lib/data.js new file mode 100644 index 00000000..8079a996 --- /dev/null +++ b/scripts/lib/data.js @@ -0,0 +1,60 @@ +Object.defineProperty(data, "bookmarks", { + value : data.configDir + "/" + data.profile + "/bookmarks", + enumerable : true +}); +Object.defineProperty(data, "history", { + value : data.configDir + "/" + data.profile + "/history", + enumerable : true +}); +Object.defineProperty(data, "cookies", { + value : data.configDir + "/" + data.profile + "/cookies", + enumerable : true +}); +Object.defineProperty(data, "quickmarks", { + value : data.configDir + "/" + data.profile + "/cookies", + enumerable : true +}); +Object.defineProperty(data, "cookies", { + value : data.configDir + "/" + data.profile + "/cookies", + enumerable : true +}); +Object.defineProperty(data, "cookiesWhitelist", { + value : data.configDir + "/" + data.profile + "/cookies.allow", + enumerable : true +}); +Object.defineProperty(data, "sessionCookiesWhitelist", { + value : data.configDir + "/" + data.profile + "/cookies_session.allow", + enumerable : true +}); +Object.defineProperty(data, "sessionCookiesWhitelist", { + value : data.configDir + "/" + data.profile + "/cookies_session.allow", + enumerable : true +}); +Object.defineProperty(data, "pluginsWhitelist", { + value : data.configDir + "/" + data.profile + "/plugins.allow", + enumerable : true +}); +Object.defineProperty(data, "scriptWhitelist", { + value : data.configDir + "/" + data.profile + "/scripts.allow", + enumerable : true +}); +Object.defineProperty(data, "session", { + value : data.configDir + "/" + data.profile + "/session", + enumerable : true +}); +Object.defineProperty(data, "customKeys", { + value : data.configDir + "/" + data.profile + "/custom_keys", + enumerable : true +}); +Object.defineProperty(data, "keys", { + value : data.configDir + "/keys", + enumerable : true +}); +Object.defineProperty(data, "settings", { + value : data.configDir + "/settings", + enumerable : true +}); +Object.defineProperty(data, "searchEngines", { + value : data.configDir + "/searchengines", + enumerable : true +}); diff --git a/scripts/lib/enums.js b/scripts/lib/enums.js index 8c634d27..3760bf9c 100644 --- a/scripts/lib/enums.js +++ b/scripts/lib/enums.js @@ -53,3 +53,9 @@ const DownloadStatus = { cancelled : 2, finished : 3 }; +const SpawnError = { + success : 0, + spawnFailed : 1<<0, + stdoutFailed : 1<<1, + stderrFailed : 1<<2 +}; |