summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-04-13 14:23:15 +0000
committerDaouda Lo <daouda@mandriva.com>2004-04-13 14:23:15 +0000
commite5e1c2c86ee1f4f81ec760c2178e0451b418e47a (patch)
tree26b7590f30e0d223cfaa4aadd6e29988f438d0e8
parent716db47ebef2cb393accd0771e93df10bbe85d3a (diff)
downloadmgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar
mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar.gz
mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar.bz2
mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar.xz
mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.zip
- compatibility
-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
}