Run login on macOS with -q

Fixes #6689
This commit is contained in:
Kovid Goyal
2023-10-09 07:05:43 +05:30
parent f03027c33d
commit 619d4e3dc4
2 changed files with 3 additions and 1 deletions

View File

@@ -48,6 +48,8 @@ Detailed list of changes
- A new mouse action ``mouse_selection word_and_line_from_point`` to select the current word under the mouse cursor and extend to end of line (:pull:`6663`)
- macOS: When running the default shell with the login program pass ``-q`` to login so that it doesn't print the MOTD (:iss:`6689`)
0.30.1 [2023-10-05]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@@ -302,7 +302,7 @@ class Child:
# https://github.com/kovidgoyal/kitty/issues/6511
import pwd
user = pwd.getpwuid(os.geteuid()).pw_name
argv = ['/usr/bin/login', '-f', '-l', '-p', user] + argv
argv = ['/usr/bin/login', '-q', '-f', '-l', '-p', user] + argv
self.final_exe = which(argv[0]) or argv[0]
self.final_argv0 = argv[0]
pid = fast_data_types.spawn(