summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:42 +0000
committerThierry Vignaud <tv@mandriva.org>2010-01-27 17:25:42 +0000
commit363711349b0464f08a6fc8ae9720440c21ed003e (patch)
treedca56693458fd06ad9c08bddb7bc81115486299e
parent3a0d27931b2db79050d25cf4cd8b2af287646f92 (diff)
downloadmgaonline-363711349b0464f08a6fc8ae9720440c21ed003e.tar
mgaonline-363711349b0464f08a6fc8ae9720440c21ed003e.tar.gz
mgaonline-363711349b0464f08a6fc8ae9720440c21ed003e.tar.bz2
mgaonline-363711349b0464f08a6fc8ae9720440c21ed003e.tar.xz
mgaonline-363711349b0464f08a6fc8ae9720440c21ed003e.zip
(read_local_config) extract it from nil
-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);