From c63f34cdad3205d19d7afebb05ac41a7d418d5c6 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Tue, 26 Apr 2022 21:30:36 +0200
Subject: [PATCH] (Linux) The 'flatpak-spawn --host' command is no longer
 included in the log output on game launch.

---
 es-app/src/FileData.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp
index 77e3aae66..4341991ed 100644
--- a/es-app/src/FileData.cpp
+++ b/es-app/src/FileData.cpp
@@ -1184,16 +1184,16 @@ void FileData::launchGame()
                          getSourceFileData()->getSystem()->getFullName());
     int returnValue = 0;
 
-#if defined(FLATPAK_BUILD)
-    // Break out of the sandbox.
-    command = "flatpak-spawn --host " + command;
-#endif
-
     LOG(LogDebug) << "Raw emulator launch command:";
     LOG(LogDebug) << commandRaw;
     LOG(LogInfo) << "Expanded emulator launch command:";
     LOG(LogInfo) << command;
 
+#if defined(FLATPAK_BUILD)
+    // Break out of the sandbox.
+    command = "flatpak-spawn --host " + command;
+#endif
+
     // Possibly keep ES-DE running in the background while the game is launched.
 
 #if defined(_WIN64)