8
|
1 |
From: Wolfgang Rosenauer <wr@rosenauer.org>
|
|
2 |
Subject: Hardcode app starter for default check
|
|
3 |
|
0
|
4 |
diff --git a/browser/components/shell/src/nsGNOMEShellService.cpp b/browser/components/shell/src/nsGNOMEShellService.cpp
|
|
5 |
--- a/browser/components/shell/src/nsGNOMEShellService.cpp
|
|
6 |
+++ b/browser/components/shell/src/nsGNOMEShellService.cpp
|
|
7 |
@@ -127,17 +127,21 @@ nsGNOMEShellService::Init()
|
|
8 |
nsCOMPtr<nsILocalFile> appPath;
|
|
9 |
rv = dirSvc->Get(NS_XPCOM_CURRENT_PROCESS_DIR, NS_GET_IID(nsILocalFile),
|
|
10 |
getter_AddRefs(appPath));
|
|
11 |
NS_ENSURE_SUCCESS(rv, rv);
|
|
12 |
|
|
13 |
rv = appPath->AppendNative(NS_LITERAL_CSTRING(MOZ_APP_NAME));
|
|
14 |
NS_ENSURE_SUCCESS(rv, rv);
|
|
15 |
|
|
16 |
- return appPath->GetNativePath(mAppPath);
|
|
17 |
+ /* This path to firefox is hardcoded for the default path setting */
|
|
18 |
+ mAppPath.Assign ("/usr/bin/firefox");
|
|
19 |
+
|
|
20 |
+ //return appPath->GetNativePath(mAppPath);
|
|
21 |
+ return NS_OK;
|
|
22 |
}
|
|
23 |
|
|
24 |
NS_IMPL_ISUPPORTS1(nsGNOMEShellService, nsIShellService)
|
|
25 |
|
|
26 |
PRBool
|
|
27 |
nsGNOMEShellService::KeyMatchesAppName(const char *aKeyValue) const
|
|
28 |
{
|
|
29 |
|