pinokiod 3.2.186 → 3.2.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kernel/index.js +1 -1
- package/package.json +1 -1
- package/server/index.js +1 -1
package/kernel/index.js
CHANGED
|
@@ -315,7 +315,7 @@ class Kernel {
|
|
|
315
315
|
await fs.promises.mkdir(this.homedir, { recursive: true }).catch((e) => {})
|
|
316
316
|
|
|
317
317
|
// If the homedir was newly created, give full permission to pinokio folder on windows
|
|
318
|
-
if (this.
|
|
318
|
+
if (this.platform === "win32") {
|
|
319
319
|
console.log("2 Give full permission")
|
|
320
320
|
await this.bin.exec({
|
|
321
321
|
sudo: true,
|
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -2109,7 +2109,7 @@ class Server {
|
|
|
2109
2109
|
let ex = await this.kernel.exists(this.kernel.homedir, "ENVIRONMENT")
|
|
2110
2110
|
if (!ex) {
|
|
2111
2111
|
let str = await Environment.ENV("system", this.kernel.homedir)
|
|
2112
|
-
await fs.promises.writeFile(path.resolve(this.homedir, "ENVIRONMENT"), str)
|
|
2112
|
+
await fs.promises.writeFile(path.resolve(this.kernel.homedir, "ENVIRONMENT"), str)
|
|
2113
2113
|
}
|
|
2114
2114
|
}
|
|
2115
2115
|
|