summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet7
1 files changed, 6 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 98a36596..a3ed5f9a 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -305,7 +305,12 @@ sub about {
}
sub setAutoStart {
my $state = shift;
- output_p "$ENV{HOME}/.mdkonline",
+ my $file = "$ENV{HOME}/.mdkonline";
+ if (-e $file) {
+ my %s = getVarsInSh($file);
+
+ }
+ output_p $file,
qq(AUTOSTART=$state
);
chmod 0644, "$ENV{HOME}/.mdkonline";