From 9f785ded816b066b530e47cee7953634faaf7319 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 22 Jun 2000 22:17:25 +0000 Subject: [PATCH] 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 --- uriloader/exthandler/nsExternalHelperAppService.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/uriloader/exthandler/nsExternalHelperAppService.cpp b/uriloader/exthandler/nsExternalHelperAppService.cpp index ad7892eb623..d59b0325aee 100644 --- a/uriloader/exthandler/nsExternalHelperAppService.cpp +++ b/uriloader/exthandler/nsExternalHelperAppService.cpp @@ -78,12 +78,12 @@ nsresult nsExternalHelperAppService::Init() nsCOMPtr locator = do_GetService(NS_FILELOCATOR_PROGID, &rv); NS_ENSURE_SUCCESS(rv, rv); - nsCOMPtr dataFilesDir; - rv = locator->GetFileLocation(nsSpecialFileSpec::App_UserProfileDirectory50, - getter_AddRefs(dataFilesDir)); - dataFilesDir->AppendRelativeUnixPath("test.rdf"); + nsCOMPtr 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);