From a3e2ad3d85f954e66431bd52edced2a013a36446 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 30 Apr 2004 10:13:57 +0000 Subject: - Launch MandrakeUpdate with the --no-confirmation flag, to avoid the "check that the network is currently running" message - Create the .MdkOnline directory in the user's (presumably root's) $HOME --- mdkapplet | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mdkapplet') diff --git a/mdkapplet b/mdkapplet index d139818a..ae44dc93 100755 --- a/mdkapplet +++ b/mdkapplet @@ -41,7 +41,7 @@ my ($av_pkgs, $update_label, $lastch, $mLog, $buffer, $textview, $wlog); my ($need_update, $raisedwindow, $isAvailable) = (0, 0, 0); my @proctable; my $conffile = '/etc/sysconfig/mdkonline'; -my $localdir = '$ENV{HOME}/.MdkOnline'; +my $localdir = "$ENV{HOME}/.MdkOnline"; my $localfile = "$localdir/mdkonline"; #compatibility @@ -176,7 +176,10 @@ sub setLabel { gtkflush(); } sub configNetwork { logIt(N("Launching drakconnect\n")); system "/usr/sbin/drakconnect &" } -sub launchUpdate { logIt(N("Launching MandrakeUpdate\n")); system "/usr/sbin/MandrakeUpdate &" } +sub launchUpdate { + logIt(N("Launching MandrakeUpdate\n")); + system "/usr/sbin/MandrakeUpdate --no-confirmation &"; +} sub installUpdates { logIt(N("Launching mdkupdate --applet\n")); system "/usr/sbin/mdkupdate", "--applet"; silentCheck() } sub silentCheck { my $link = "http://www.mandrakeonline.net/online3_RemoteAction.php" . '?action=UpdateList'; -- cgit v1.2.1