Is it possible to read an environment variable from the code of a Google Chrome extension, that is, from background.js? This is possible in case of Mozilla Firefox extensions, this way:
var system = require("sdk/system");
console.log(system.env.PATH);
What is the equivalent code in case of Chrome? The OS is Windows.
If you want to interact with OS you have to create Windows executable and use Native Messaging to communicate with it. Take a look at example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With