1
1
mirror of https://github.com/neosubhamoy/neodlp.git synced 2026-03-22 23:55:48 +05:30

refactor: call yt-dlp via shell on flatpak

This commit is contained in:
2026-03-05 22:55:17 +05:30
Verified
parent 52dad3acb1
commit cadf8ee123
2 changed files with 3 additions and 3 deletions

View File

@@ -259,7 +259,7 @@ export default function App({ children }: { children: React.ReactNode }) {
try {
const isFlatpak = await invoke<boolean>('is_flatpak');
const command = isFlatpak
? Command.create('yt-dlp', [' --version'])
? Command.create('sh', ['-c', `yt-dlp --version`])
: Command.sidecar('binaries/yt-dlp', ['--version']);
const output = await command.execute();
if (output.code === 0) {