Skip to content

Commit

Permalink
Possible solution to refreshing env vars on Win.
Browse files Browse the repository at this point in the history
  • Loading branch information
amherag committed Aug 26, 2022
1 parent 4d60a08 commit 77a6988
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dashboard/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ export default async function () {
} else {
cmd = `echo '\nexport PATH=$PATH:${binPath}' >> ${getInitFilePath()}`;
}
exec(cmd);
exec(cmd, () => {
if (plat === 'win') exec('set PATH=C');
});

window?.webContents.send(DashboardChannelsEnum.set_point_path);
};
Expand Down

0 comments on commit 77a6988

Please sign in to comment.