summaryrefslogtreecommitdiffstats
path: root/mgaapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mgaapplet')
-rwxr-xr-xmgaapplet3
1 files changed, 2 insertions, 1 deletions
diff --git a/mgaapplet b/mgaapplet
index 730e7cf7..3b504e27 100755
--- a/mgaapplet
+++ b/mgaapplet
@@ -686,7 +686,8 @@ sub add_media() {
sub installUpdates() {
return if $mdv_update_pid;
log::explanations(N_("Launching MageiaUpdate\n"));
- $mdv_update_pid = fork_exec('MageiaUpdate', '--no-media-update', '--no-confirmation', '--no-splash',
+ my $program = find { -x "/usr/bin/$_" } qw(MageiaUpdate MandrivaUpdate);
+ $mdv_update_pid = fork_exec($program, '--no-media-update', '--no-confirmation', '--no-splash',
if_($root, "--urpmi-root=$root"));
silentCheck(); gtkflush();
}