From 4b9efbed7acadaccdbae61ccc705f78d0be62ae0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 17 Mar 2024 00:29:04 +0000 Subject: [PATCH] util: wrap paths in quotes in shell invocations ref #10 --- hyprcursor-util/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprcursor-util/src/main.cpp b/hyprcursor-util/src/main.cpp index 6a622b4..f219380 100644 --- a/hyprcursor-util/src/main.cpp +++ b/hyprcursor-util/src/main.cpp @@ -342,7 +342,7 @@ static std::optional extractXTheme(const std::string& xpath_, const std::cout << "Found xcursor " << xcursor.path().stem().string() << "\n"; // decompile xcursor - const auto OUT = spawnSync(std::format("rm -f /tmp/hyprcursor-util/* && cd /tmp/hyprcursor-util && xcur2png {} -d /tmp/hyprcursor-util 2>&1", + const auto OUT = spawnSync(std::format("rm -f /tmp/hyprcursor-util/* && cd /tmp/hyprcursor-util && xcur2png '{}' -d /tmp/hyprcursor-util 2>&1", std::filesystem::canonical(xcursor.path()).string())); // read the config