summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-08-21 10:03:23 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-08-21 10:03:25 -0700
commitf178f4419e1815d514b267c7bc890a4f2c91e9ec (patch)
treea831a94498e6adc295601c2533726b4622f3c4c4
parentf1c68f698b588bdc55ac86e68c134eaed7514691 (diff)
macos: fix iOS builds
-rw-r--r--macos/Sources/Ghostty/Ghostty.Config.swift4
1 files changed, 4 insertions, 0 deletions
diff --git a/macos/Sources/Ghostty/Ghostty.Config.swift b/macos/Sources/Ghostty/Ghostty.Config.swift
index acc907edb..a223b2a0a 100644
--- a/macos/Sources/Ghostty/Ghostty.Config.swift
+++ b/macos/Sources/Ghostty/Ghostty.Config.swift
@@ -302,6 +302,7 @@ extension Ghostty {
}
var macosCustomIcon: String {
+ #if os(macOS)
let homeDirURL = FileManager.default.homeDirectoryForCurrentUser
let ghosttyConfigIconPath = homeDirURL.appendingPathComponent(
".config/ghostty/Ghostty.icns",
@@ -313,6 +314,9 @@ extension Ghostty {
guard ghostty_config_get(config, &v, key, UInt(key.count)) else { return defaultValue }
guard let ptr = v else { return defaultValue }
return String(cString: ptr)
+ #else
+ return ""
+ #endif
}
var macosIconFrame: MacOSIconFrame {