summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet9
1 files changed, 7 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index e59886fd..d139818a 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -41,7 +41,12 @@ my ($av_pkgs, $update_label, $lastch, $mLog, $buffer, $textview, $wlog);
my ($need_update, $raisedwindow, $isAvailable) = (0, 0, 0);
my @proctable;
my $conffile = '/etc/sysconfig/mdkonline';
-my $localfile = "$ENV{HOME}/.mdkonline";
+my $localdir = '$ENV{HOME}/.MdkOnline';
+my $localfile = "$localdir/mdkonline";
+
+#compatibility
+mkdir_p($localdir) if !-d $localdir;
+-e "$ENV{HOME}/.mdkonline" and system("mv", "$ENV{HOME}/.mdkonline", "$localfile");
my %state = (
okay => {
@@ -391,7 +396,7 @@ sub displayLogs {
$w
}
sub shouldStart() {
- my %p = getVarsFromSh("$ENV{HOME}/.mdkonline");
+ my %p = getVarsFromSh("$localfile");
my $ret = $p{AUTOSTART} eq 'FALSE' ? 0 : 1;
$ret
}