diff --git a/runtime/pgAdmin4.cpp b/runtime/pgAdmin4.cpp
index f21bc19..1bdfadb 100644
--- a/runtime/pgAdmin4.cpp
+++ b/runtime/pgAdmin4.cpp
@@ -108,8 +108,9 @@
         {
             settings.setValue("PythonPath", pythonpath);
             settings.setValue("ApplicationPath", applicationpath);
+            settings.sync();
         }

         exit(1);
     }

