diff --git a/src/plugins/projectexplorer/runnables.h b/src/plugins/projectexplorer/runnables.h
index 67b6809ecf69b72c5525a388f286d9b93d200f51..5e4c94774c949c1c5268516df8c74fa06e91e776 100644
--- a/src/plugins/projectexplorer/runnables.h
+++ b/src/plugins/projectexplorer/runnables.h
@@ -41,7 +41,7 @@ public:
     QString commandLineArguments;
     QString workingDirectory;
     Utils::Environment environment;
-    ApplicationLauncher::Mode runMode;
+    ApplicationLauncher::Mode runMode = ApplicationLauncher::Gui;
 };
 
 PROJECTEXPLORER_EXPORT bool operator==(const StandardRunnable &r1, const StandardRunnable &r2);