diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-17 14:00:53 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-17 14:00:53 +0000 |
commit | 55e4fe1a266bf046ab484504d10dec23ec22f16b (patch) | |
tree | 944077ef2bcc248ce2a52844da21af1f24ad790e /mdkapplet | |
parent | 78ebd795384874d773d2b17a208ca05728ffd880 (diff) | |
download | mgaonline-55e4fe1a266bf046ab484504d10dec23ec22f16b.tar mgaonline-55e4fe1a266bf046ab484504d10dec23ec22f16b.tar.gz mgaonline-55e4fe1a266bf046ab484504d10dec23ec22f16b.tar.bz2 mgaonline-55e4fe1a266bf046ab484504d10dec23ec22f16b.tar.xz mgaonline-55e4fe1a266bf046ab484504d10dec23ec22f16b.zip |
- write conf file
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -306,14 +306,14 @@ sub about { sub setAutoStart { my $state = shift; my $file = "$ENV{HOME}/.mdkonline"; - if (-e $file) { + if (-f $file) { my %s = getVarsInSh($file); - - } - output_p $file, - qq(AUTOSTART=$state + $s{AUTOSTART} = $state; + setVarsInSh($file, \%s); + } else { output_p $file, + qq(AUTOSTART=$state ); - chmod 0644, "$ENV{HOME}/.mdkonline"; + } } sub mainQuit() { setAutoStart('FALSE'); |