diff --git a/macos/Ghostty-Info.plist b/macos/Ghostty-Info.plist index de2c98bf9..eb64fed93 100644 --- a/macos/Ghostty-Info.plist +++ b/macos/Ghostty-Info.plist @@ -2,9 +2,10 @@ - GHOSTTY_MAC_APP - 1 LSEnvironment - + + GHOSTTY_MAC_APP + 1 + diff --git a/macos/Sources/main.swift b/macos/Sources/main.swift index 9a462b440..990ef8ef1 100644 --- a/macos/Sources/main.swift +++ b/macos/Sources/main.swift @@ -6,7 +6,7 @@ import GhosttyKit // whether we launch from the app or not. A user can fake this if // they want but they're doing so at their own detriment... let process = ProcessInfo.processInfo -if (process.environment["GHOSTTY_MAC_APP"] == "") { +if ((process.environment["GHOSTTY_MAC_APP"] ?? "") == "") { ghostty_cli_main(UInt(CommandLine.argc), CommandLine.unsafeArgv) exit(1) }