summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xapplet/mdkapplet2
-rwxr-xr-xmdkapplet7
2 files changed, 6 insertions, 3 deletions
diff --git a/applet/mdkapplet b/applet/mdkapplet
index 033a782b..18728f47 100755
--- a/applet/mdkapplet
+++ b/applet/mdkapplet
@@ -145,7 +145,7 @@ sub confNetwork {
system("/usr/sbin/net_monitor" . "&")
}
sub launchUpdate {
- system("/usr/sbin/MandrakeUpdate" . "&");
+ system("/usr/sbin/MandrakeUpdate --no-confirmation &");
}
sub CheckUpdates {
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';