summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfrikanalen/bin/scheduler6
1 files changed, 4 insertions, 2 deletions
diff --git a/frikanalen/bin/scheduler b/frikanalen/bin/scheduler
index b0bdd40..7b30ebd 100755
--- a/frikanalen/bin/scheduler
+++ b/frikanalen/bin/scheduler
@@ -406,11 +406,13 @@ sub vlc_start {
my $os = `uname -s`;
chomp($os);
if ( $os eq 'Darwin' ) {
- exec( "/Applications/VLC.app/Contents/MacOS/VLC", @vlcargs);
+ unshift @vlcargs, "/Applications/VLC.app/Contents/MacOS/VLC";
} else {
# "valgrind", "--leak-check=full",
- exec( "vlc", @vlcargs);
+ unshift @vlcargs, "vlc";
}
+ print "exec: ", join(" ", @vlcargs), "\n";
+ exec(@vlcargs);
exit 0;
} else {
$vlc->{url} = "http://localhost:8080/";