]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn, vmspawn: honor the new window title switch
authorMantas Mikulėnas <grawity@gmail.com>
Mon, 17 Jun 2024 11:22:51 +0000 (14:22 +0300)
committerMantas Mikulėnas <grawity@gmail.com>
Tue, 25 Jun 2024 07:39:15 +0000 (10:39 +0300)
src/nspawn/nspawn.c
src/vmspawn/vmspawn.c

index ed428c6a0b07caa1dcc3a9bf9d3e82da6ecd4ccd..8cfef7bfbc77d83b5d1e4a56744cc1b10096aafa 100644 (file)
@@ -5562,7 +5562,8 @@ static int run_container(
                         } else if (!isempty(arg_background))
                                 (void) pty_forward_set_background_color(forward, arg_background);
 
-                        set_window_title(forward);
+                        if (shall_set_terminal_title())
+                                set_window_title(forward);
                         break;
 
                 default:
index 73e165feaddc8149372d0e62e616c857d8e39f13..20065455005c9ea4e16e96b759b2fd203f18edcc 100644 (file)
@@ -2141,7 +2141,8 @@ static int run_virtual_machine(int kvm_device_fd, int vhost_device_fd) {
                 } else if (!isempty(arg_background))
                         (void) pty_forward_set_background_color(forward, arg_background);
 
-                set_window_title(forward);
+                if (shall_set_terminal_title())
+                        set_window_title(forward);
         }
 
         r = sd_event_loop(event);