From aaffde81ac64de845b69f7320ac3eef118064289 Mon Sep 17 00:00:00 2001 From: jscampucci Date: Tue, 9 Jul 2024 12:50:49 +0200 Subject: [PATCH] [linux] add executable permission --- lib/services/download.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/services/download.dart b/lib/services/download.dart index 8b64058..a0600eb 100644 --- a/lib/services/download.dart +++ b/lib/services/download.dart @@ -59,6 +59,10 @@ class DLServices { }); ytDlpPath = tempFile.path; + + if (Platform.isLinux || Platform.isMacOS) { + await Process.run('chmod', ['+x', ytDlpPath]); + } } Future downloadFile(Video video) async {