From 1b8d5fa82af05b0a59a1465782a285df05c5ee93 Mon Sep 17 00:00:00 2001 From: kohnish Date: Thu, 31 Mar 2022 22:41:17 +0200 Subject: [PATCH] Add TERM_PROGRAM environment variable like other well-known terminals for shell run commands --- guake/main.py | 1 + .../notes/[set_term_program_name]-14f1c2e5efddde2d.yaml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 releasenotes/notes/[set_term_program_name]-14f1c2e5efddde2d.yaml diff --git a/guake/main.py b/guake/main.py index ed23fcdad..79ade7610 100644 --- a/guake/main.py +++ b/guake/main.py @@ -75,6 +75,7 @@ def main(): """ # Force to xterm-256 colors for compatibility with some old command line programs os.environ["TERM"] = "xterm-256color" + os.environ["TERM_PROGRAM"] = "guake" # do not use version keywords here, pbr might be slow to find the version of Guake module parser = OptionParser() diff --git a/releasenotes/notes/[set_term_program_name]-14f1c2e5efddde2d.yaml b/releasenotes/notes/[set_term_program_name]-14f1c2e5efddde2d.yaml new file mode 100644 index 000000000..674e03978 --- /dev/null +++ b/releasenotes/notes/[set_term_program_name]-14f1c2e5efddde2d.yaml @@ -0,0 +1,2 @@ +release_summary: > + Set TERM_PROGRAM environment variable