mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-12-22 04:19:47 +01:00
core: fixup execAndGet not running correctly
This commit is contained in:
parent
4d5b68b7ad
commit
0e38c982d7
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ bool vectorDeltaLessThan(const Vector2D& a, const Vector2D& b, const Vector2D& d
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string execAndGet(const char* cmd) {
|
std::string execAndGet(const char* cmd) {
|
||||||
CProcess proc("/bin/bash", {cmd});
|
CProcess proc("/bin/bash", {"-c", cmd});
|
||||||
if (!proc.runSync())
|
if (!proc.runSync())
|
||||||
return "";
|
return "";
|
||||||
return proc.stdOut();
|
return proc.stdOut();
|
||||||
|
|
Loading…
Reference in a new issue