changed the enviroment variable from BUTTON to BLOCK_BUTTON to make the script i use in i3 work

This commit is contained in:
2021-01-10 02:34:21 +01:00
parent 27de5f3c17
commit 78912a350b

View File

@@ -70,10 +70,10 @@ void getcmd(const Block *block, char *output)
FILE *cmdf;
if (*button)
{
setenv("button", button, 1);
setenv("BLOCK_BUTTON", button, 1);
cmdf = popen(cmd, "r");
*button = '\0';
unsetenv("BUTTON");
unsetenv("BLOCK_BUTTON");
}
else
{