Skip to content

Commit

Permalink
util: wrap paths in quotes in shell invocations
Browse files Browse the repository at this point in the history
ref #10
  • Loading branch information
vaxerski committed Mar 17, 2024
1 parent 59acebe commit 4b9efbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyprcursor-util/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ static std::optional<std::string> 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
Expand Down

0 comments on commit 4b9efbe

Please sign in to comment.