From 6f22d70d59ce0aa86a1d6addbc266257e495b95d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sun, 30 Jun 2024 07:59:25 +0200 Subject: [PATCH] fix: Updater executable not being launched correctly when path had spaces in it Fixes #1780 --- lib/libimhex/source/api/imhex_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libimhex/source/api/imhex_api.cpp b/lib/libimhex/source/api/imhex_api.cpp index 46a6f8d2e..f12891b63 100644 --- a/lib/libimhex/source/api/imhex_api.cpp +++ b/lib/libimhex/source/api/imhex_api.cpp @@ -862,7 +862,7 @@ namespace hex { EventImHexClosing::subscribe([executablePath, updateTypeString] { hex::executeCommand( - hex::format("{} {}", + hex::format("\"{}\" \"{}\"", wolv::util::toUTF8String(executablePath), updateTypeString )