author | Wolfgang Rosenauer <wr@rosenauer.org> |
Thu, 22 Jul 2010 08:38:28 +0200 | |
changeset 101 | 1678af7b5183 |
parent 94 | 7177cac23915 |
child 126 | 7b356805729c |
permissions | -rw-r--r-- |
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 */ |
|
94
7177cac23915
Update to snapshot 20100707
Wolfgang Rosenauer <wr@rosenauer.org>
parents:
8
diff
changeset
|
18 |
+ mAppPath.Assign ("/usr/bin/firefox4"); |
0 | 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 |