diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-08-07 11:54:36 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-08-07 11:54:36 +0000 |
commit | cfba2e4fe434c8ed679897362cf2e1e672088031 (patch) | |
tree | 124db0b6beedefdb29b1d13064f8a134af94e005 /mdkapplet | |
parent | 0d5ff4978729e5f1544b76dbe9cc75019c9ee384 (diff) | |
download | mgaonline-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-x | mdkapplet | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); |