mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Ensure the shell environment passes the Login Shell test
This commit is contained in:
@ -883,13 +883,8 @@ const Subprocess = struct {
|
||||
// Awesome.
|
||||
try args.append("/usr/bin/login");
|
||||
if (hush) try args.append("-q");
|
||||
try args.append("-flp");
|
||||
try args.append("-fp");
|
||||
try args.append(username);
|
||||
|
||||
// We execute `env` to run the command (aka shell) in a
|
||||
// modified environment and not use another shell interpreter
|
||||
// to launch the shell environment.
|
||||
try args.append("/usr/bin/env");
|
||||
try args.append(opts.full_config.command orelse default_path);
|
||||
break :args try args.toOwnedSlice();
|
||||
}
|
||||
|
Reference in New Issue
Block a user