fix(Custom): loop script block main loop

This commit is contained in:
Alexis
2018-09-05 19:20:19 +02:00
parent 7020af7653
commit de5df09fcd
3 changed files with 7 additions and 7 deletions

View File

@ -17,6 +17,7 @@ class Custom : public ALabel {
const std::string name_;
waybar::util::SleeperThread thread_;
waybar::util::command::res output_;
};
}

View File

@ -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) {