mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
termio/exec: small change
This commit is contained in:
@ -1090,7 +1090,7 @@ const Subprocess = struct {
|
|||||||
break :args try args.toOwnedSlice();
|
break :args try args.toOwnedSlice();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (builtin.os.tag == .windows) {
|
if (comptime builtin.os.tag == .windows) {
|
||||||
// We run our shell wrapped in `cmd.exe` so that we don't have
|
// We run our shell wrapped in `cmd.exe` so that we don't have
|
||||||
// to parse the command line ourselves if it has arguments.
|
// to parse the command line ourselves if it has arguments.
|
||||||
try args.append("C:\\Windows\\System32\\cmd.exe");
|
try args.append("C:\\Windows\\System32\\cmd.exe");
|
||||||
@ -1105,6 +1105,7 @@ const Subprocess = struct {
|
|||||||
if (internal_os.isFlatpak()) try args.append("-l");
|
if (internal_os.isFlatpak()) try args.append("-l");
|
||||||
try args.append("-c");
|
try args.append("-c");
|
||||||
}
|
}
|
||||||
|
|
||||||
try args.append(opts.full_config.command orelse default_path);
|
try args.append(opts.full_config.command orelse default_path);
|
||||||
break :args try args.toOwnedSlice();
|
break :args try args.toOwnedSlice();
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user