Fix Firefox on Mac profile-finding issues by updating path to profile on

this platform. (cmp)
This commit is contained in:
cltbld 2004-10-20 21:50:53 +00:00
Родитель fe4408d506
Коммит 5496c4f24d
1 изменённых файлов: 4 добавлений и 6 удалений

Просмотреть файл

@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
use File::Copy;
$::UtilsVersion = '$Revision: 1.277 $ ';
$::UtilsVersion = '$Revision: 1.278 $ ';
package TinderUtils;
@ -1111,13 +1111,11 @@ sub get_profile_dir {
} elsif ($Settings::OS eq "Darwin") {
# This is ifdef'd in nsXREDirProvider.cpp
if ($Settings::ProductName eq 'Thunderbird') {
$profile_dir = "$ENV{HOME}/Library/Thunderbird/Profiles";
$profile_dir = "$ENV{HOME}/Library/$Settings::ProductName/Profiles";
($profile_dir) = <$profile_dir/*.$Settings::MozProfileName>;
} else {
$profile_dir = "$ENV{HOME}/Library/Application Support/$Settings::ProductName/Profiles/$Settings::MozProfileName";
if ($Settings::VendorName) {
($profile_dir) = <"$profile_dir*">;
}
$profile_dir = "$ENV{HOME}/Library/Application Support/$Settings::ProductName/Profiles";
($profile_dir) = <"$profile_dir/*.$Settings::MozProfileName">;
}
} else {
# *nix