 -  } else if (!GetFile(appDir, NS_LITERAL_CSTRING("updated"), updatedDir)) {
 -    return;
 -  }
--#if defined(XP_WIN)
--  nsAutoString applyToDirW;
--  rv = updatedDir->GetPath(applyToDirW);
--
--  NS_ConvertUTF16toUTF8 applyToDir(applyToDirW);
--#else
+ #if defined(XP_WIN)
+   nsAutoString applyToDirW;
+   rv = updatedDir->GetPath(applyToDirW);
+ 
+   NS_ConvertUTF16toUTF8 applyToDir(applyToDirW);
+ #else
 -  nsCAutoString applyToDir;
--  rv = updatedDir->GetNativePath(applyToDir);
--#endif
+   rv = updatedDir->GetNativePath(applyToDir);
+ #endif
  #endif
    if (NS_FAILED(rv))
      return;
  
  #if defined(XP_WIN)
    nsAutoString updateDirPathW;
-   rv = updateDir->GetPath(updateDirPathW);
- 
-@@ -826,27 +811,32 @@ ProcessUpdates(nsIFile *greDir, nsIFile 
+@@ -701,16 +692,17 @@ ApplyUpdate(nsIFile *greDir, nsIFile *up
+ 
+   int argc = appArgc + 5;
+   char **argv = new char*[argc + 1];
+   if (!argv)
+     return;
+   argv[0] = (char*) updaterPath.get();
+   argv[1] = (char*) updateDirPath.get();
+   argv[2] = (char*) applyToDir.get();
++  printf("Arguments are: %s, %s, %s\n", argv[0], argv[1], argv[2]);
+   argv[3] = (char*) pid.get();
+   if (restart && appArgc) {
+     argv[4] = workingDirPath;
+     argv[5] = (char*) appFilePath.get();
+     for (int i = 1; i < appArgc; ++i)
+       argv[5 + i] = appArgv[i];
+     argc = 5 + appArgc;
+     argv[argc] = NULL;
+@@ -826,27 +818,32 @@ ProcessUpdates(nsIFile *greDir, nsIFile 
      if (backgroundUpdate && *backgroundUpdate) {
        restart = false;
        pid = &dummyPID;

+pref("jondobrowser.version", "0.5");
diff -r e3e008015298 browser/base/content/aboutDialog.js
--- a/browser/base/content/aboutDialog.js	Wed Jan 23 11:46:06 2013 -0800
+++ b/browser/base/content/aboutDialog.js	Tue Feb 12 07:50:01 2013 +0100
@@ -304,17 +304,16 @@ appUpdater.prototype =
         gAppUpdater.selectPanel("noUpdatesFound");
         return;

diff -r e3e008015298 browser/app/profile/firefox.js
--- a/browser/app/profile/firefox.js	Wed Jan 23 11:46:06 2013 -0800
+++ b/browser/app/profile/firefox.js	Wed Feb 13 10:45:17 2013 +0100
@@ -112,21 +112,20 @@ pref("app.update.cert.maxErrors", 5);
 // present the following conditions apply for a successful update check:
 // 1. the uri scheme must be https
