GenerateProjectFiles fails if space in path. [Linux]

If there’s a space in the path it looks like when the UnrealHeaderTool gets called it doesn’t preserve quotes.

example command:

./ -project="'/home//Documents/Unreal Projects/Dialogues/Dialogues.uproject'" -game -engine

I tried including a \ after Unreal with no success.

UHT only follows the path till Documents.

Empty Spaces on Unix are #Q§X!!!
You could just type ./
that is enough, this’ll download the dependecies in your gameengine folder.

Or you can just rename the directory to Unreal_Projects like I did

Oh, I do stuff like that. It’s still a bug since those paths should be wrapped with quotes to preserve the spaces.

Hey -

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here Unreal Engine Issues and Bug Tracker (UE-38334) . You can track the report’s status as the issue is reviewed by our development staff.


For me the fix was to change the file and add a pair of missing quotation marks:

diff --git a/ b/
index d744d1e2a..f094bc3a6 100755
--- a/
+++ b/
@@ -25,5 +25,5 @@ if [ "$(uname)" = "Darwin" ]; then
     # assume (GNU/)Linux
        cd Engine/Build/BatchFiles/Linux
-       bash ./ $@
+       bash ./ "$@"