mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-28 19:46:35 +00:00
@@ -2817,7 +2817,7 @@ pub fn loadCliArgs(self: *Config, alloc_gpa: Allocator) !void {
|
||||
.windows => {},
|
||||
|
||||
// Fast-path if we are Linux and have no args.
|
||||
.linux => if (std.os.argv.len <= 1) return,
|
||||
.linux, .freebsd => if (std.os.argv.len <= 1) return,
|
||||
|
||||
// Everything else we have to at least try because it may
|
||||
// not use std.os.argv.
|
||||
@@ -2835,7 +2835,7 @@ pub fn loadCliArgs(self: *Config, alloc_gpa: Allocator) !void {
|
||||
// styling, etc. based on the command.
|
||||
//
|
||||
// See: https://github.com/Vladimir-csp/xdg-terminal-exec
|
||||
if (comptime builtin.os.tag == .linux) {
|
||||
if ((comptime builtin.os.tag == .linux) or (comptime builtin.os.tag == .freebsd)) {
|
||||
if (internal_os.xdg.parseTerminalExec(std.os.argv)) |args| {
|
||||
const arena_alloc = self._arena.?.allocator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user