diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-16 16:32:38 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-16 16:32:38 +0000 |
commit | bb5eb728cc5401cd2c552f05830426bbabb29e63 (patch) | |
tree | 37e012255e33bb9e6a5a3742968664ff91911e46 /mdkapplet | |
parent | f0dae5c7040a5645b5566bbead7eb91c53454b57 (diff) | |
download | mgaonline-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-x | mdkapplet | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 } |