From 7e3966c73debdccf5fa45fd85d6d64d1bf14f4bc Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 19 Feb 2009 17:09:11 +0000 Subject: kill running vlc if configured with one-instance by default (it does not use DVB options from new command line) --- perl-install/standalone/drakdvb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'perl-install/standalone') diff --git a/perl-install/standalone/drakdvb b/perl-install/standalone/drakdvb index 84d7f077e..eb5d4909c 100755 --- a/perl-install/standalone/drakdvb +++ b/perl-install/standalone/drakdvb @@ -127,6 +127,11 @@ sub launch_tv() { my $channel = get_selected_channel() or return; if (whereis_binary("vlc")) { my $info = get_channel_info($channel) or return; + my %vlc_config = read_gnomekderc("$ENV{HOME}/.config/vlc/vlcrc", "main"); + if ($vlc_config{'one-instance'}) { + # changing dvb options does not work with --one-instance, kill running vlc + system("killall vlc"); + } system("vlc dvb:// --dvb-frequency=$info->{frequency} --dvb-adapter=0 --dvb-bandwidth=$info->{bandwidth} --program=$info->{serviceid} &"); } else { system('mplayer "dvb://' . $channel . '"&'); -- cgit v1.2.1