[bugfix] handle error when cheking if steam is running as admin

This commit is contained in:
MathieuG-P
2024-02-02 20:18:33 +01:00
parent ee6acb7980
commit cdc589f602
3 changed files with 13 additions and 4 deletions
+5
View File
@@ -46,6 +46,11 @@ export class SteamService {
return getProcessPid(SteamService.PROCESS_NAME);
}
/**
* Check if the Steam process is running as administrator
* @throws Can throw an error if the Steam process is running as admin
* @returns true if the Steam process is running as administrator
*/
public async isElevated(): Promise<boolean>{
if(process.platform === "linux"){ return true; }
const steamPid = await this.getSteamPid();