expose environment variable which is the instance name (for use with multiple bars)

This commit is contained in:
Felix Kratz 2024-02-06 17:59:29 +01:00
parent c2194cbcf5
commit 2a3f9b6734

View file

@ -185,6 +185,7 @@ void system_events(uint32_t event, void* data, size_t data_length, void* context
int main(int argc, char **argv) {
snprintf(g_name, sizeof(g_name), "%s", basename(argv[0]));
setenv("BAR_NAME", g_name, 1);
if (argc > 1) parse_arguments(argc, argv);
if (is_root())