diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-04-13 14:23:15 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-04-13 14:23:15 +0000 |
commit | e5e1c2c86ee1f4f81ec760c2178e0451b418e47a (patch) | |
tree | 26b7590f30e0d223cfaa4aadd6e29988f438d0e8 | |
parent | 716db47ebef2cb393accd0771e93df10bbe85d3a (diff) | |
download | mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar.gz mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar.bz2 mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.tar.xz mgaonline-e5e1c2c86ee1f4f81ec760c2178e0451b418e47a.zip |
- compatibility
-rwxr-xr-x | mdkapplet | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 } |