diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/linkview | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview index d1464e0..3b877c4 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -58,6 +58,7 @@ sub play my ($url, $article_name) = @_; my $pid; + $pid = fork(); if (not $pid) { setsid(); @@ -69,7 +70,7 @@ sub play 'playing media', ' playing <b>' . $article_name . '</b>' ); - if (system(MPV_PATH, $url) != 0) { + if (system(TERMINAL_PATH, "-e", "zsh", "-ic", MPV_PATH . " " . $url) != 0) { exec( NOTIFYSEND_PATH, '-u', 'critical', |