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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user