summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-03 14:40:00 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-03 14:40:00 +0000
commit225e9db8ba3b82d761d5f49653da9e38cd7e5e33 (patch)
tree355bb3611c0b36d07d368f1170481dfefcc7fc56 /mdkapplet
parent4d661010948da39f65c16a5979163fe8378dfc70 (diff)
downloadmgaonline-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-xmdkapplet5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index b9df9b70..a23ae92c 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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 {