summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {