bug 335395 - [client] Correct profile detection for toolkit-based SeaMonkey, r=preed

This commit is contained in:
kairo%kairo.at 2006-05-31 20:41:14 +00:00
Родитель 7bcb0ba853
Коммит c197b30faf
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -24,7 +24,7 @@ use Config; # for $Config{sig_name} and $Config{sig_num}
use File::Find ();
use File::Copy;
$::UtilsVersion = '$Revision: 1.318 $ ';
$::UtilsVersion = '$Revision: 1.319 $ ';
package TinderUtils;
@ -1187,7 +1187,7 @@ sub get_profile_dir {
my $build_dir = shift;
my $profile_product_name = $Settings::ProductName;
$profile_product_name = "Mozilla" if ($profile_product_name eq "SeaMonkey");
$profile_product_name = "Mozilla" if (($profile_product_name eq "SeaMonkey") && !($Settings::VendorName));
# $ProductName must be set to the codename for the Mac, so check
# $BinaryName and use the correct profile for browser.
@ -1230,7 +1230,7 @@ sub get_profile_dir {
if ($profile_product_name eq 'Thunderbird') {
$profile_dir = "$ENV{HOME}/Library/$profile_product_name/Profiles";
($profile_dir) = <$profile_dir/*.$Settings::MozProfileName>;
} elsif ($profile_product_name eq 'Firefox') {
} elsif (($profile_product_name eq 'Firefox') || ($profile_product_name eq 'SeaMonkey')) {
$profile_dir = "$ENV{HOME}/Library/Application Support/$profile_product_name/Profiles";
($profile_dir) = <"$profile_dir/*$Settings::MozProfileName*">;
} elsif ($profile_product_name eq 'Camino') {