[gnome-builder/wip/gtk4-port] libide/foundry: fix envvar names



commit a3dc4d4bed5a54d47ddde6e221ede119265ecdbc
Author: Christian Hergert <chergert redhat com>
Date:   Fri May 27 12:29:16 2022 -0700

    libide/foundry: fix envvar names
    
    This ended up different than what the MR message said, after having
    dug into the commit to see the actual use.

 src/libide/foundry/ide-run-manager.c | 20 ++++----------------
 1 file changed, 4 insertions(+), 16 deletions(-)
---
diff --git a/src/libide/foundry/ide-run-manager.c b/src/libide/foundry/ide-run-manager.c
index 587d96dc1..64f5cd9a0 100644
--- a/src/libide/foundry/ide-run-manager.c
+++ b/src/libide/foundry/ide-run-manager.c
@@ -563,25 +563,13 @@ apply_color_scheme (IdeEnvironment *env,
   g_debug ("Applying color-scheme \"%s\"", color_scheme);
 
   if (ide_str_equal0 (color_scheme, "follow"))
-    {
-      /* Clear any overrides that somehow leaked into our process */
-      ide_environment_setenv (env, "ADW_DBG_FORCE_LIGHT", NULL);
-      ide_environment_setenv (env, "ADW_DBG_FORCE_DARK", NULL);
-    }
+    ide_environment_setenv (env, "ADW_DEBUG_COLOR_SCHEME", NULL);
   else if (ide_str_equal0 (color_scheme, "force-light"))
-    {
-      ide_environment_setenv (env, "ADW_DBG_FORCE_LIGHT", "1");
-      ide_environment_setenv (env, "ADW_DBG_FORCE_DARK", NULL);
-    }
+    ide_environment_setenv (env, "ADW_DEBUG_COLOR_SCHEME", "prefer-light");
   else if (ide_str_equal0 (color_scheme, "force-dark"))
-    {
-      ide_environment_setenv (env, "ADW_DBG_FORCE_LIGHT", NULL);
-      ide_environment_setenv (env, "ADW_DBG_FORCE_DARK", "1");
-    }
+    ide_environment_setenv (env, "ADW_DEBUG_COLOR_SCHEME", "prefer-dark");
   else
-    {
-      g_warn_if_reached ();
-    }
+    g_warn_if_reached ();
 
   IDE_EXIT;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]