diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-06-28 14:46:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-28 14:46:27 +0200 |
commit | cddbd730cb21ddee9f9ce86444c306a60391be77 (patch) | |
tree | bcdef0c7615016da75f4233a07b6b67ebd4fb852 /src/nspawn | |
parent | Merge pull request #33516 from poettering/more-stub-tweaks (diff) | |
parent | run: move condition inside set_window_title() (diff) | |
download | systemd-cddbd730cb21ddee9f9ce86444c306a60391be77.tar.xz systemd-cddbd730cb21ddee9f9ce86444c306a60391be77.zip |
Merge pull request #33370 from grawity/run-title
run: add option to prevent the setting of terminal title
Diffstat (limited to 'src/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 6eec5a27a0..01c3a432a5 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -4557,6 +4557,9 @@ static void set_window_title(PTYForward *f) { assert(f); + if (!shall_set_terminal_title()) + return; + (void) gethostname_strict(&hn); if (emoji_enabled()) |