|
|
03d5fe |
diff -up mozilla-aurora/browser/components/preferences/advanced.xul.default mozilla-aurora/browser/components/preferences/advanced.xul
|
|
|
3a67ab |
--- mozilla-aurora/browser/components/preferences/advanced.xul.default 2015-03-12 13:21:15.000000000 +0100
|
|
|
3a67ab |
+++ mozilla-aurora/browser/components/preferences/advanced.xul 2015-03-12 14:23:22.419249264 +0100
|
|
|
3a67ab |
@@ -58,7 +58,7 @@
|
|
|
29a772 |
type="bool"/>
|
|
|
29a772 |
|
|
|
29a772 |
|
|
|
29a772 |
-#ifdef MOZ_UPDATER
|
|
|
29a772 |
+#ifdef 0
|
|
|
29a772 |
<preference id="app.update.enabled" name="app.update.enabled" type="bool"/>
|
|
|
29a772 |
<preference id="app.update.auto" name="app.update.auto" type="bool"/>
|
|
|
29a772 |
#ifdef XP_WIN
|
|
|
3a67ab |
@@ -95,7 +95,7 @@
|
|
|
3a67ab |
type="int"/>
|
|
|
29a772 |
</preferences>
|
|
|
29a772 |
|
|
|
29a772 |
-#ifdef HAVE_SHELL_SERVICE
|
|
|
29a772 |
+#ifdef 0
|
|
|
29a772 |
<stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
|
|
|
29a772 |
<stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
|
|
|
29a772 |
#endif
|
|
|
3a67ab |
diff -up mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp.default mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp
|
|
|
3a67ab |
--- mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp.default 2015-03-12 13:21:16.000000000 +0100
|
|
|
3a67ab |
+++ mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp 2015-03-12 14:23:22.419249264 +0100
|
|
|
29a772 |
@@ -149,8 +149,8 @@ nsGNOMEShellService::GetAppPathFromLaunc
|
|
|
29a772 |
bool
|
|
|
29a772 |
nsGNOMEShellService::KeyMatchesAppName(const char *aKeyValue) const
|
|
|
29a772 |
{
|
|
|
29a772 |
+ nsAutoCString appName;
|
|
|
29a772 |
|
|
|
29a772 |
- gchar *commandPath;
|
|
|
29a772 |
if (mUseLocaleFilenames) {
|
|
|
03d5fe |
gchar *nativePath = g_filename_from_utf8(aKeyValue, -1,
|
|
|
03d5fe |
nullptr, nullptr, nullptr);
|
|
|
03d5fe |
@@ -159,17 +159,13 @@ nsGNOMEShellService::KeyMatchesAppName(c
|
|
|
29a772 |
return false;
|
|
|
29a772 |
}
|
|
|
29a772 |
|
|
|
29a772 |
- commandPath = g_find_program_in_path(nativePath);
|
|
|
29a772 |
+ appName.Assign(nativePath);
|
|
|
29a772 |
g_free(nativePath);
|
|
|
29a772 |
} else {
|
|
|
29a772 |
- commandPath = g_find_program_in_path(aKeyValue);
|
|
|
29a772 |
+ appName.Assign(aKeyValue);
|
|
|
29a772 |
}
|
|
|
29a772 |
|
|
|
29a772 |
- if (!commandPath)
|
|
|
29a772 |
- return false;
|
|
|
29a772 |
-
|
|
|
29a772 |
- bool matches = mAppPath.Equals(commandPath);
|
|
|
29a772 |
- g_free(commandPath);
|
|
|
29a772 |
+ bool matches = mAppPath.Equals(appName);
|
|
|
29a772 |
return matches;
|
|
|
29a772 |
}
|
|
|
29a772 |
|
|
|
03d5fe |
@@ -254,16 +250,7 @@ nsGNOMEShellService::SetDefaultBrowser(b
|
|
|
29a772 |
nsCOMPtr<nsIGConfService> gconf = do_GetService(NS_GCONFSERVICE_CONTRACTID);
|
|
|
29a772 |
nsCOMPtr<nsIGIOService> giovfs = do_GetService(NS_GIOSERVICE_CONTRACTID);
|
|
|
29a772 |
if (gconf) {
|
|
|
29a772 |
- nsAutoCString appKeyValue;
|
|
|
29a772 |
- if (mAppIsInPath) {
|
|
|
29a772 |
- // mAppPath is in the users path, so use only the basename as the launcher
|
|
|
29a772 |
- gchar *tmp = g_path_get_basename(mAppPath.get());
|
|
|
29a772 |
- appKeyValue = tmp;
|
|
|
29a772 |
- g_free(tmp);
|
|
|
29a772 |
- } else {
|
|
|
29a772 |
- appKeyValue = mAppPath;
|
|
|
29a772 |
- }
|
|
|
29a772 |
-
|
|
|
29a772 |
+ nsAutoCString appKeyValue(MOZ_APP_NAME);
|
|
|
29a772 |
appKeyValue.AppendLiteral(" %s");
|
|
|
29a772 |
|
|
|
29a772 |
for (unsigned int i = 0; i < ArrayLength(appProtocols); ++i) {
|
|
|
3a67ab |
diff -up mozilla-aurora/browser/components/shell/nsGNOMEShellService.h.default mozilla-aurora/browser/components/shell/nsGNOMEShellService.h
|
|
|
3a67ab |
--- mozilla-aurora/browser/components/shell/nsGNOMEShellService.h.default 2015-03-12 13:21:16.000000000 +0100
|
|
|
3a67ab |
+++ mozilla-aurora/browser/components/shell/nsGNOMEShellService.h 2015-03-12 14:23:22.420249261 +0100
|
|
|
29a772 |
@@ -13,7 +13,7 @@
|
|
|
29a772 |
class nsGNOMEShellService MOZ_FINAL : public nsIShellService
|
|
|
29a772 |
{
|
|
|
29a772 |
public:
|
|
|
29a772 |
- nsGNOMEShellService() : mCheckedThisSession(false), mAppIsInPath(false) { }
|
|
|
29a772 |
+ nsGNOMEShellService() : mCheckedThisSession(true), mAppIsInPath(true) { }
|
|
|
29a772 |
|
|
|
29a772 |
NS_DECL_ISUPPORTS
|
|
|
29a772 |
NS_DECL_NSISHELLSERVICE
|