From cfe8a44d153baae7b0f7a015dcd3b04cae98b60a Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 13 Jul 2011 14:13:07 -0500 Subject: Allow the status provider directory to be overridden by an environment variable --- src/status-items.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3