Skip to content

Commit

Permalink
handle node-powershell failing during icon resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Jul 15, 2024
1 parent a769fdd commit b4c3ac8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tabby-electron/src/shells/wsl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ export class WSLShellProvider extends ShellProvider {
})
}

private async _resolveIcon (defaultDistKey: any): Promise<string> {
private _resolveIcon (defaultDistKey: any): Promise<string> {
return this._resolveIconInner(defaultDistKey).catch(e => {
console.error('Failed to resolve icon for WSL distribution:', defaultDistKey, e)
return wslIconMap.Linux
})
}

private async _resolveIconInner (defaultDistKey: any): Promise<string> {
let _icon = wslIconMap.Linux

// check if the register has PackageFamilyName
Expand Down

0 comments on commit b4c3ac8

Please sign in to comment.