summaryrefslogtreecommitdiffstats
path: root/src/nspawn
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-06-28 14:46:27 +0200
committerGitHub <noreply@github.com>2024-06-28 14:46:27 +0200
commitcddbd730cb21ddee9f9ce86444c306a60391be77 (patch)
treebcdef0c7615016da75f4233a07b6b67ebd4fb852 /src/nspawn
parentMerge pull request #33516 from poettering/more-stub-tweaks (diff)
parentrun: move condition inside set_window_title() (diff)
downloadsystemd-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.c3
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())