mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-22 03:13:02 +00:00
expose environment variable which is the instance name (for use with multiple bars)
This commit is contained in:
parent
c2194cbcf5
commit
2a3f9b6734
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue