[gnome-photos] application, main: Use properly namespaced environment variables
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] application, main: Use properly namespaced environment variables
- Date: Tue, 10 Mar 2015 08:45:38 +0000 (UTC)
commit e49edb8891d641d9b7a54a9a48abd4f2d621c5a6
Author: Debarshi Ray <debarshir gnome org>
Date: Sat Feb 28 18:39:34 2015 +0100
application, main: Use properly namespaced environment variables
The environment variable namespace (like /usr) is a global resource.
We should properly prefix our variables to avoid polluting it. The
following changes were made:
- PHOTOS_DISABLE_MINERS to GNOME_PHOTOS_DISABLE_MINERS
- PHOTOS_PERSIST to GNOME_PHOTOS_PERSIST
src/photos-application.c | 2 +-
src/photos-main.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index e4b5d31..1503f0f 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -434,7 +434,7 @@ photos_application_refresh_miner_now (PhotosApplication *self, GomMiner *miner)
GCancellable *cancellable;
const gchar *const index_types[] = {"photos", NULL};
- if (g_getenv ("PHOTOS_DISABLE_MINERS") != NULL)
+ if (g_getenv ("GNOME_PHOTOS_DISABLE_MINERS") != NULL)
goto out;
priv->miners_running = g_list_prepend (priv->miners_running, g_object_ref (miner));
diff --git a/src/photos-main.c b/src/photos-main.c
index 071cc79..d50cf44 100644
--- a/src/photos-main.c
+++ b/src/photos-main.c
@@ -53,7 +53,7 @@ main (gint argc, gchar *argv[])
g_set_prgname (PACKAGE_TARNAME);
app = photos_application_new ();
- if (g_getenv ("PHOTOS_PERSIST") != NULL)
+ if (g_getenv ("GNOME_PHOTOS_PERSIST") != NULL)
g_application_hold (G_APPLICATION (app));
remote_display_mngr = photos_remote_display_manager_dup_singleton ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]