mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
fix(Custom): loop script block main loop
This commit is contained in:
@ -17,6 +17,7 @@ class Custom : public ALabel {
|
||||
|
||||
const std::string name_;
|
||||
waybar::util::SleeperThread thread_;
|
||||
waybar::util::command::res output_;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -4,12 +4,12 @@
|
||||
|
||||
namespace waybar::util::command {
|
||||
|
||||
struct cmd_res {
|
||||
struct res {
|
||||
int exit_code;
|
||||
std::string out;
|
||||
};
|
||||
|
||||
inline struct cmd_res exec(const std::string cmd)
|
||||
inline struct res exec(const std::string cmd)
|
||||
{
|
||||
FILE* fp(popen(cmd.c_str(), "r"));
|
||||
if (!fp) {
|
||||
|
Reference in New Issue
Block a user