aboutsummaryrefslogtreecommitdiff
path: root/src/status-items.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-13 14:13:07 -0500
committerTed Gould <ted@gould.cx>2011-07-13 14:13:07 -0500
commitcfe8a44d153baae7b0f7a015dcd3b04cae98b60a (patch)
tree0e62f55bde6e53639a8b34b612f823632c733673 /src/status-items.c
parentcd0c66774c3f61cee7279211cefd72e980a314aa (diff)
downloadayatana-indicator-messages-cfe8a44d153baae7b0f7a015dcd3b04cae98b60a.tar.gz
ayatana-indicator-messages-cfe8a44d153baae7b0f7a015dcd3b04cae98b60a.tar.bz2
ayatana-indicator-messages-cfe8a44d153baae7b0f7a015dcd3b04cae98b60a.zip
Allow the status provider directory to be overridden by an environment variable
Diffstat (limited to 'src/status-items.c')
-rw-r--r--src/status-items.c7
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;
}