correctly launch if any non-ascii chars are in the path. bug 148432

This commit is contained in:
pinkerton%netscape.com 2002-06-03 14:38:32 +00:00
Родитель 4d61012cd9
Коммит c7a9abfa6a
4 изменённых файлов: 8 добавлений и 24 удалений

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

@ -54,12 +54,8 @@ extern const char *prefContractID;
- (BOOL) initMozillaPrefs
{
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *path = [mainBundle bundlePath];
NSMutableString *mutablePath = [NSMutableString stringWithString:path];
[mutablePath appendString:@"/Contents/MacOS/"];
const char *cstr = [mutablePath cString];
setenv("MOZILLA_FIVE_HOME", cstr, 1);
NSString *path = [[[NSBundle mainBundle] executablePath] stringByDeletingLastPathComponent];
setenv("MOZILLA_FIVE_HOME", [path fileSystemRepresentation], 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);

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

@ -54,12 +54,8 @@ extern const char *prefContractID;
- (BOOL) initMozillaPrefs
{
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *path = [mainBundle bundlePath];
NSMutableString *mutablePath = [NSMutableString stringWithString:path];
[mutablePath appendString:@"/Contents/MacOS/"];
const char *cstr = [mutablePath cString];
setenv("MOZILLA_FIVE_HOME", cstr, 1);
NSString *path = [[[NSBundle mainBundle] executablePath] stringByDeletingLastPathComponent];
setenv("MOZILLA_FIVE_HOME", [path fileSystemRepresentation], 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);

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

@ -54,12 +54,8 @@ extern const char *prefContractID;
- (BOOL) initMozillaPrefs
{
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *path = [mainBundle bundlePath];
NSMutableString *mutablePath = [NSMutableString stringWithString:path];
[mutablePath appendString:@"/Contents/MacOS/"];
const char *cstr = [mutablePath cString];
setenv("MOZILLA_FIVE_HOME", cstr, 1);
NSString *path = [[[NSBundle mainBundle] executablePath] stringByDeletingLastPathComponent];
setenv("MOZILLA_FIVE_HOME", [path fileSystemRepresentation], 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);

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

@ -54,12 +54,8 @@ extern const char *prefContractID;
- (BOOL) initMozillaPrefs
{
NSBundle *mainBundle = [NSBundle mainBundle];
NSString *path = [mainBundle bundlePath];
NSMutableString *mutablePath = [NSMutableString stringWithString:path];
[mutablePath appendString:@"/Contents/MacOS/"];
const char *cstr = [mutablePath cString];
setenv("MOZILLA_FIVE_HOME", cstr, 1);
NSString *path = [[[NSBundle mainBundle] executablePath] stringByDeletingLastPathComponent];
setenv("MOZILLA_FIVE_HOME", [path fileSystemRepresentation], 1);
nsresult rv;
rv = NS_InitEmbedding(nsnull, nsnull);