mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-29 14:38:35 +00:00
macos: fix iOS builds
This commit is contained in:
@@ -302,6 +302,7 @@ extension Ghostty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var macosCustomIcon: String {
|
var macosCustomIcon: String {
|
||||||
|
#if os(macOS)
|
||||||
let homeDirURL = FileManager.default.homeDirectoryForCurrentUser
|
let homeDirURL = FileManager.default.homeDirectoryForCurrentUser
|
||||||
let ghosttyConfigIconPath = homeDirURL.appendingPathComponent(
|
let ghosttyConfigIconPath = homeDirURL.appendingPathComponent(
|
||||||
".config/ghostty/Ghostty.icns",
|
".config/ghostty/Ghostty.icns",
|
||||||
@@ -313,6 +314,9 @@ extension Ghostty {
|
|||||||
guard ghostty_config_get(config, &v, key, UInt(key.count)) else { return defaultValue }
|
guard ghostty_config_get(config, &v, key, UInt(key.count)) else { return defaultValue }
|
||||||
guard let ptr = v else { return defaultValue }
|
guard let ptr = v else { return defaultValue }
|
||||||
return String(cString: ptr)
|
return String(cString: ptr)
|
||||||
|
#else
|
||||||
|
return ""
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
var macosIconFrame: MacOSIconFrame {
|
var macosIconFrame: MacOSIconFrame {
|
||||||
|
Reference in New Issue
Block a user