From 28a7a878887ea4c6f6757535f2d6d507113f718b Mon Sep 17 00:00:00 2001 From: Alvin Dimas Praditya Date: Fri, 27 Sep 2024 05:33:14 +0700 Subject: [PATCH] fix chromium bash permission --- src/patches/chromium.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/patches/chromium.ts b/src/patches/chromium.ts index e7303b3..c86bcb9 100644 --- a/src/patches/chromium.ts +++ b/src/patches/chromium.ts @@ -77,6 +77,8 @@ export async function patchChromiumApps(){ fs.mkdirSync(path.join(bashPath, ".."), { recursive: true }); fs.writeFileSync(bashPath, amdhelperChromiumBash(apps, global.disableGpuMode)); await exec(`sudo chmod +x ${escapePathSpaces(bashPath)}`); + await exec(`sudo chmod 755 ${escapePathSpaces(bashPath)}`); + await exec(`chown 0:0 ${escapePathSpaces(bashPath)}`); fs.writeFileSync(plistPath, amdhelperChromiumPlist); }