diff --git a/tabby-local/src/shells/posix.ts b/tabby-local/src/shells/posix.ts index 5173f099..4e79d7fe 100644 --- a/tabby-local/src/shells/posix.ts +++ b/tabby-local/src/shells/posix.ts @@ -18,7 +18,14 @@ export class POSIXShellsProvider extends ShellProvider { if (this.hostApp.platform === Platform.Windows) { return [] } - return (await fs.readFile('/etc/shells', { encoding: 'utf-8' })) + let shellListPath = '/etc/shells' + try { + await fs.stat(shellListPath) + } catch { + // Solus Linux + shellListPath = '/usr/share/defaults/etc/shells' + } + return (await fs.readFile(shellListPath, { encoding: 'utf-8' })) .split('\n') .map(x => x.trim()) .filter(x => x && !x.startsWith('#'))