mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Oh my, parse lua output.
This commit is contained in:
parent
72d2aad026
commit
69718f5b75
10
src/conky.c
10
src/conky.c
@ -4209,7 +4209,15 @@ static void generate_text_internal(char *p, int p_max_size,
|
||||
OBJ(lua) {
|
||||
char *str = llua_getstring(obj->data.s);
|
||||
if (str) {
|
||||
snprintf(p, p_max_size, "%s", str);
|
||||
struct information *tmp_info;
|
||||
struct text_object subroot;
|
||||
|
||||
tmp_info = malloc(sizeof(struct information));
|
||||
memcpy(tmp_info, cur, sizeof(struct information));
|
||||
parse_conky_vars(&subroot, str, p, tmp_info);
|
||||
|
||||
free_text_objects(&subroot);
|
||||
free(tmp_info);
|
||||
free(str);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user