1
1
mirror of https://github.com/neosubhamoy/neodlp.git synced 2026-03-24 19:15:48 +05:30

refactor: switched to self-contained yt-dlp on flatpak

This commit is contained in:
2026-03-23 15:39:05 +05:30
Verified
parent dcd5cb61fb
commit 8f5607c171
5 changed files with 9 additions and 6 deletions

View File

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