4cf60e
diff -up mozilla-aurora/browser/components/preferences/in-content/advanced.xul.default mozilla-aurora/browser/components/preferences/in-content/advanced.xul
4cf60e
--- mozilla-aurora/browser/components/preferences/in-content/advanced.xul.default	2016-01-28 16:47:37.376005810 +0100
4cf60e
+++ mozilla-aurora/browser/components/preferences/in-content/advanced.xul	2016-01-28 16:48:40.113963249 +0100
4cf60e
@@ -63,7 +63,7 @@
4cf60e
               type="bool"/>
29a772
 
4cf60e
  
29a772
-#ifdef MOZ_UPDATER
29a772
+#ifdef 0
4cf60e
   
4cf60e
               name="app.update.enabled"
4cf60e
               type="bool"/>
4cf60e
@@ -107,7 +107,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
4cf60e
--- mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp.default	2015-12-16 16:47:31.000000000 +0100
4cf60e
+++ mozilla-aurora/browser/components/shell/nsGNOMEShellService.cpp	2016-01-28 16:47:37.376005810 +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
 
4cf60e
@@ -255,16 +251,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
4cf60e
--- mozilla-aurora/browser/components/shell/nsGNOMEShellService.h.default	2015-12-16 16:47:31.000000000 +0100
4cf60e
+++ mozilla-aurora/browser/components/shell/nsGNOMEShellService.h	2016-01-28 16:47:37.376005810 +0100
29a772
@@ -13,7 +13,7 @@
4cf60e
 class nsGNOMEShellService 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