diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2006-03-13 05:43:32 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2006-03-13 05:43:32 +0000 |
commit | eb4c9403f8dc29e54c458f8f35624a5b41674cc6 (patch) | |
tree | b0a46a57e799a7fe46ce0942ee6d5e9514a1b200 /src | |
parent | ce1b7692e1f22c24e13f308f01ee31ea0ba7eb2d (diff) |
Bug 333768 – vteapp debug stuff should be conditional Patch from Egmont
2006-03-08 Behdad Esfahbod <behdad@gnome.org>
Bug 333768 – vteapp debug stuff should be conditional
Patch from Egmont Koblinger.
* src/vteapp.c: Make pwd and setting env vars conditional on debug.
Diffstat (limited to 'src')
-rw-r--r-- | src/vteapp.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/vteapp.c b/src/vteapp.c index 29a1e2a..70ca538 100644 --- a/src/vteapp.c +++ b/src/vteapp.c @@ -400,7 +400,11 @@ int main(int argc, char **argv) { GtkWidget *window, *hbox, *scrollbar, *widget; - char *env_add[] = {"FOO=BAR", "BOO=BIZ", NULL}; + char *env_add[] = { +#ifdef VTE_DEBUG + "FOO=BAR", "BOO=BIZ", +#endif + NULL}; const char *background = NULL; gboolean transparent = FALSE, audible = TRUE, blink = TRUE, debug = FALSE, dingus = FALSE, geometry = TRUE, dbuffer = TRUE, @@ -752,10 +756,12 @@ main(int argc, char **argv) command, NULL, env_add, working_directory, TRUE, TRUE, TRUE); + #ifdef VTE_DEBUG if (command == NULL) { vte_terminal_feed_child(VTE_TERMINAL(widget), "pwd\n", -1); } + #endif } else { long i; i = vte_terminal_forkpty(VTE_TERMINAL(widget), |