diff --git a/docs/changelog.rst b/docs/changelog.rst index 122164140..d3b3c42f4 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/child.py b/kitty/child.py index fcc0fe02a..042009b95 100644 --- a/kitty/child.py +++ b/kitty/child.py @@ -302,7 +302,7 @@ def fork(self) -> Optional[int]: # 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(