summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-17 14:00:53 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-17 14:00:53 +0000
commit55e4fe1a266bf046ab484504d10dec23ec22f16b (patch)
tree944077ef2bcc248ce2a52844da21af1f24ad790e /mdkapplet
parent78ebd795384874d773d2b17a208ca05728ffd880 (diff)
downloadmgaonline-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-xmdkapplet12
1 files changed, 6 insertions, 6 deletions
diff --git a/mdkapplet b/mdkapplet
index a3ed5f9a..f9c715f2 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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');