4cf60e
diff -up mozilla-aurora/browser/components/preferences/in-content/advanced.xul.default mozilla-aurora/browser/components/preferences/in-content/advanced.xul
f9af33
--- mozilla-aurora/browser/components/preferences/in-content/advanced.xul.default	2016-11-15 12:21:37.000000000 +0100
f9af33
+++ mozilla-aurora/browser/components/preferences/in-content/advanced.xul	2016-12-08 10:51:04.049353573 +0100
f9af33
@@ -75,7 +75,7 @@
4cf60e
               type="bool"/>
29a772
 
4cf60e
  
29a772
-#ifdef MOZ_UPDATER
29a772
+#ifdef 0
4cf60e
   
4cf60e
               name="app.update.enabled"
4cf60e
               type="bool"/>
f9af33
@@ -116,7 +116,7 @@
4cf60e
               type="int"/>
4cf60e
 </preferences>
29a772
 
29a772
-#ifdef HAVE_SHELL_SERVICE
29a772
+#ifdef 0
4cf60e
   <stringbundle id="bundleShell" src="chrome://browser/locale/shellservice.properties"/>
4cf60e
   <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
f9af33
--- mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp.default	2016-11-15 12:21:39.000000000 +0100
f9af33
+++ mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp	2016-12-08 10:51:04.049353573 +0100
4cf60e
@@ -150,8 +150,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);
4cf60e
@@ -160,17 +160,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
 
f9af33
@@ -253,16 +249,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
f9af33
--- mozilla-aurora/browser/components/shell/nsGNOMEShellService.h.default	2016-12-08 10:51:04.049353573 +0100
f9af33
+++ mozilla-aurora/browser/components/shell/nsGNOMEShellService.h	2016-12-08 10:55:53.754263671 +0100
29a772
@@ -13,7 +13,7 @@
f9af33
 class nsGNOMEShellService final : public nsIGNOMEShellService
29a772
 {
29a772
 public:
f9af33
-  nsGNOMEShellService() : mAppIsInPath(false) { }
f9af33
+  nsGNOMEShellService() : mAppIsInPath(true) { }
29a772
 
29a772
   NS_DECL_ISUPPORTS
29a772
   NS_DECL_NSISHELLSERVICE
f9af33
diff -up mozilla-aurora/browser/components/shell/ShellService.jsm.default mozilla-aurora/browser/components/shell/ShellService.jsm
f9af33
--- mozilla-aurora/browser/components/shell/ShellService.jsm.default	2016-12-08 10:56:51.602245720 +0100
f9af33
+++ mozilla-aurora/browser/components/shell/ShellService.jsm	2016-12-08 10:56:58.213243668 +0100
f9af33
@@ -48,7 +48,7 @@ let ShellServiceInternal = {
f9af33
    * up and "browser.shell.checkDefaultBrowser" is true, otherwise it
f9af33
    * is false.
f9af33
    */
f9af33
-  _checkedThisSession: false,
f9af33
+  _checkedThisSession: true,
f9af33
   get shouldCheckDefaultBrowser() {
f9af33
     // If we've already checked, the browser has been started and this is a
f9af33
     // new window open, and we don't want to check again.