Fix: properly handle media_viewer commands with arguments

pull/539/head
Abe Estrada 2025-07-06 15:51:53 -06:00 zatwierdzone przez GitHub
rodzic 936c090621
commit 7fc68c0c36
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -582,7 +582,9 @@ class TUI(urwid.Frame):
media_viewer = self.options.media_viewer
if media_viewer:
try:
subprocess.run([media_viewer] + urls)
command = media_viewer.split()
command.extend(urls)
subprocess.run(command)
except FileNotFoundError:
self.footer.set_error_message(f"Media viewer not found: '{media_viewer}'")
except Exception as ex: