summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet9
1 files changed, 7 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index ac1f3449..f6fc3f1d 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -209,8 +209,13 @@ $icon->signal_connect(activate => sub {
);
$actions{$state_global}->() if ref $actions{$state_global};
});
-my ($opt) = @ARGV;
-if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }
+foreach my $opt (@ARGV) {
+ if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') }
+ if ($opt =~ '--(rpm-root|urpmi-root)=(.*)') {
+ $::rpmdrake_options{$1}[0] = $2;
+ }
+}
+
shouldStart() or die "$localfile should be set to TRUE: please use --force or -f option to launch applet\n";