summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-07 11:54:36 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-07 11:54:36 +0000
commitcfba2e4fe434c8ed679897362cf2e1e672088031 (patch)
tree124db0b6beedefdb29b1d13064f8a134af94e005 /mdkapplet
parent0d5ff4978729e5f1544b76dbe9cc75019c9ee384 (diff)
downloadmgaonline-cfba2e4fe434c8ed679897362cf2e1e672088031.tar
mgaonline-cfba2e4fe434c8ed679897362cf2e1e672088031.tar.gz
mgaonline-cfba2e4fe434c8ed679897362cf2e1e672088031.tar.bz2
mgaonline-cfba2e4fe434c8ed679897362cf2e1e672088031.tar.xz
mgaonline-cfba2e4fe434c8ed679897362cf2e1e672088031.zip
make first check delay configurable through /etc/sysconfig/mdkapplet (#32338)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index f2a7aa61..0c3e0343 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -71,6 +71,7 @@ my $release = mdkonline::get_release();
my %config = getVarsFromSh('/etc/sysconfig/mdkapplet');
$config{UPDATE_FREQUENCY} ||= 3*60*60; # default to 3hours
+$config{FIRST_CHECK_DELAY} ||= 250000; # default to 25 seconds
sub my_sprintf_fixutf8 {
mdkonline::get_release() < 2006.0 ? common::sprintf_fixutf8(@_) : @_;
@@ -241,7 +242,7 @@ $icon->show_all;
go2State('okay');
gtkflush();
checkConfig();
-Glib::Timeout->add(25000, sub { checkUpdates(); 0 });
+Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub { checkUpdates(); 0 });
setup_cyclic_check();