diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 14:40:00 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 14:40:00 +0000 |
commit | 225e9db8ba3b82d761d5f49653da9e38cd7e5e33 (patch) | |
tree | 355bb3611c0b36d07d368f1170481dfefcc7fc56 /mdkapplet | |
parent | 4d661010948da39f65c16a5979163fe8378dfc70 (diff) | |
download | mgaonline-225e9db8ba3b82d761d5f49653da9e38cd7e5e33.tar mgaonline-225e9db8ba3b82d761d5f49653da9e38cd7e5e33.tar.gz mgaonline-225e9db8ba3b82d761d5f49653da9e38cd7e5e33.tar.bz2 mgaonline-225e9db8ba3b82d761d5f49653da9e38cd7e5e33.tar.xz mgaonline-225e9db8ba3b82d761d5f49653da9e38cd7e5e33.zip |
read user config file earlier (needed for next commits)
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -72,6 +72,8 @@ $config{DISTRO_CHECK_DELAY} ||= 60*60*24; # default : one day mkdir_p($localdir) if !-d $localdir; -e "$ENV{HOME}/.mdkonline" and system("mv", "$ENV{HOME}/.mdkonline", $localfile); +my %local_config = getVarsFromSh($localfile); + my %state = ( delayed => { colour => [ 'busy' ], @@ -549,8 +551,7 @@ sub go2State { } sub shouldStart() { - my %p = getVarsFromSh($localfile); - to_bool($p{AUTOSTART} ne 'FALSE'); + to_bool($local_config{AUTOSTART} ne 'FALSE'); } sub setState { |