2010-01-08 01:32:43 +01:00
|
|
|
From: Wolfgang Rosenauer <wr@rosenauer.org>
|
|
|
|
Subject: Hardcode app starter for default check
|
|
|
|
|
2009-11-25 14:59:34 +01:00
|
|
|
diff --git a/browser/components/shell/src/nsGNOMEShellService.cpp b/browser/components/shell/src/nsGNOMEShellService.cpp
|
|
|
|
--- a/browser/components/shell/src/nsGNOMEShellService.cpp
|
|
|
|
+++ b/browser/components/shell/src/nsGNOMEShellService.cpp
|
2010-01-08 01:32:43 +01:00
|
|
|
@@ -127,17 +127,21 @@ nsGNOMEShellService::Init()
|
2009-11-25 14:59:34 +01:00
|
|
|
nsCOMPtr<nsILocalFile> appPath;
|
|
|
|
rv = dirSvc->Get(NS_XPCOM_CURRENT_PROCESS_DIR, NS_GET_IID(nsILocalFile),
|
|
|
|
getter_AddRefs(appPath));
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|
2007-01-08 12:23:18 +01:00
|
|
|
rv = appPath->AppendNative(NS_LITERAL_CSTRING(MOZ_APP_NAME));
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|
|
|
|
- return appPath->GetNativePath(mAppPath);
|
|
|
|
+ /* This path to firefox is hardcoded for the default path setting */
|
|
|
|
+ mAppPath.Assign ("/usr/bin/firefox");
|
|
|
|
+
|
|
|
|
+ //return appPath->GetNativePath(mAppPath);
|
|
|
|
+ return NS_OK;
|
|
|
|
}
|
|
|
|
|
2009-11-25 14:59:34 +01:00
|
|
|
NS_IMPL_ISUPPORTS1(nsGNOMEShellService, nsIShellService)
|
|
|
|
|
|
|
|
PRBool
|
|
|
|
nsGNOMEShellService::KeyMatchesAppName(const char *aKeyValue) const
|
|
|
|
{
|
|
|
|
|