work for bug #38374 helperApps.rdf is now mimeTypes.rdf. use the file locator to get the mimeTypes file. fix the unix implementation of nsOSHelperAppService.cpp to go to the base class to determine what application to launch. r=mscott

This commit is contained in:
sspitzer%netscape.com 2000-06-22 22:17:25 +00:00
Родитель cac6549505
Коммит c6b5309946
1 изменённых файлов: 5 добавлений и 5 удалений

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

@ -78,12 +78,12 @@ nsresult nsExternalHelperAppService::Init()
nsCOMPtr<nsIFileLocator> locator = do_GetService(NS_FILELOCATOR_PROGID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsIFileSpec> dataFilesDir;
rv = locator->GetFileLocation(nsSpecialFileSpec::App_UserProfileDirectory50,
getter_AddRefs(dataFilesDir));
dataFilesDir->AppendRelativeUnixPath("test.rdf");
nsCOMPtr<nsIFileSpec> mimeTypesFile;
rv = locator->GetFileLocation(nsSpecialFileSpec::App_UsersMimeTypes50,
getter_AddRefs(mimeTypesFile));
nsXPIDLCString url;
dataFilesDir->GetURLString(getter_Copies(url));
rv = mimeTypesFile->GetURLString(getter_Copies(url));
NS_ENSURE_SUCCESS(rv, rv);
rv = remoteDS->Init(url);
NS_ENSURE_SUCCESS(rv, rv);