()
| 544 | } |
| 545 | |
| 546 | const getWslDistributions = () => { |
| 547 | try { |
| 548 | const { execSync } = require('child_process'); |
| 549 | const stdout = execSync('wsl.exe -l -q', { encoding: 'utf16le', stdio: ['ignore', 'pipe', 'pipe'], timeout: 1000 }); |
| 550 | return stdout.trim().split('\n').filter(d => d.length > 0); |
| 551 | } catch { |
| 552 | return []; |
| 553 | } |
| 554 | }; |
| 555 | |
| 556 | const getPaths = () => { |
| 557 | const platform = process.platform; |