summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-16 16:32:38 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-16 16:32:38 +0000
commitbb5eb728cc5401cd2c552f05830426bbabb29e63 (patch)
tree37e012255e33bb9e6a5a3742968664ff91911e46 /mdkapplet
parentf0dae5c7040a5645b5566bbead7eb91c53454b57 (diff)
downloadmgaonline-bb5eb728cc5401cd2c552f05830426bbabb29e63.tar
mgaonline-bb5eb728cc5401cd2c552f05830426bbabb29e63.tar.gz
mgaonline-bb5eb728cc5401cd2c552f05830426bbabb29e63.tar.bz2
mgaonline-bb5eb728cc5401cd2c552f05830426bbabb29e63.tar.xz
mgaonline-bb5eb728cc5401cd2c552f05830426bbabb29e63.zip
- should start with --force or -f
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet10
1 files changed, 8 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 2f969302..98a36596 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -110,6 +110,8 @@ $eventbox->signal_connect(button_press_event => sub {
$raisedwindow = 1;
}
});
+my ($opt) = @ARGV;
+if ($opt eq '--force' || $opt eq '-f') { setAutoStart('TRUE') };
shouldStart() or die "$ENV{HOME}/.mdkonline should be set to TRUE";
@@ -301,10 +303,14 @@ sub about {
my $b = browser();
system("$b " . "https://mandrakeonline.net/info.php" . "&")
}
-sub mainQuit() {
+sub setAutoStart {
+ my $state = shift;
output_p "$ENV{HOME}/.mdkonline",
- qq(AUTOSTART=FALSE
+ qq(AUTOSTART=$state
);
chmod 0644, "$ENV{HOME}/.mdkonline";
+}
+sub mainQuit() {
+ setAutoStart('FALSE');
Gtk2->main_quit
}