summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdkapplet_gui.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdkapplet_gui.pm b/mdkapplet_gui.pm
index c2155e3a..7f6d5949 100644
--- a/mdkapplet_gui.pm
+++ b/mdkapplet_gui.pm
@@ -54,7 +54,8 @@ our $localfile = "$localdir/mdkonline";
mkdir_p($localdir) if !-d $localdir;
-e "$ENV{HOME}/.mdkonline" and system("mv", "$ENV{HOME}/.mdkonline", $localfile);
-our %local_config = getVarsFromSh($localfile);
+our %local_config;
+read_local_config();
our $width = 500;
our @common = (
@@ -110,6 +111,10 @@ sub new_link_button {
$link;
}
+sub read_local_config() {
+ %local_config = getVarsFromSh($localfile);
+}
+
sub setVar {
my ($var, $st) = @_;
my %s = getVarsFromSh($localfile);