diff --git a/src/conky.cc b/src/conky.cc index a745c06b..4369d2d4 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -764,7 +764,6 @@ void evaluate(const char *text, char *p, int p_max_size) { * callbacks and generate_text_internal() after callbacks. */ extract_variable_text_internal(&subroot, text); - conky::run_all_callbacks(); generate_text_internal(p, p_max_size, subroot); DBGP2("evaluated '%s' to '%s'", text, p); diff --git a/tests/test-conky.cc b/tests/test-conky.cc index d4d632e5..8452f889 100644 --- a/tests/test-conky.cc +++ b/tests/test-conky.cc @@ -42,22 +42,4 @@ TEST_CASE("Expressions can be evaluated", "[evaluate]") { evaluate(input, result, kMaxSize); REQUIRE(strncmp(input, result, kMaxSize) == 0); } - - SECTION("execs can be evaluated") { - constexpr int kMaxSize = 50; - const char input[kMaxSize] = "${exec echo text}"; - char result[kMaxSize]{'\0'}; - - evaluate(input, result, kMaxSize); - REQUIRE(strncmp("text", result, kMaxSize) == 0); - } - - SECTION("execp echo without other substitutions can be evaluated") { - constexpr int kMaxSize = 50; - const char input[kMaxSize] = "${execp echo text}"; - char result[kMaxSize]{'\0'}; - - evaluate(input, result, kMaxSize); - REQUIRE(strncmp("text", result, kMaxSize) == 0); - } }