mirror of
https://github.com/systemd/systemd.git
synced 2026-07-15 03:50:44 +00:00
nspawn, vmspawn: honor the new window title switch
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user