diff options
-rw-r--r-- | src/status-items.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/status-items.c b/src/status-items.c index ac92aba..ce2db9a 100644 --- a/src/status-items.c +++ b/src/status-items.c @@ -79,7 +79,12 @@ status_items_build (StatusUpdateFunc status_update_func) update_func = status_update_func; - g_idle_add(provider_directory_parse, STATUS_PROVIDER_DIR); + const gchar * status_providers_env = g_getenv("INDICATOR_MESSAGES_STATUS_PROVIDER_DIR"); + if (status_providers_env == NULL) { + g_idle_add(provider_directory_parse, STATUS_PROVIDER_DIR); + } else { + g_idle_add(provider_directory_parse, (gpointer)status_providers_env); + } return menuitems; } |