Files
ghostty/macos/Sources/Features/Custom App Icon/Extensions/Notification+AppIcon.swift
Lukas c7a73076e9 macOS: fix App Icon update in Finders
Looks like  `NSWorkspace.shared.setIcon` can only be called from the main App, DockTilePlugin is sandboxed and doesn't have the permission to `file-write-finderinfo`.

It works fine in debug, but not in release. This fixes #11489, #11290
2026-04-20 12:56:55 +02:00

9 lines
251 B
Swift

import AppKit
extension Notification.Name {
/// Distributed Notification for DockTilePlugin to update icon
///
/// Ghostty -> DockTilePlugin
static let ghosttyIconDidChange = Notification.Name("com.mitchellh.ghostty.iconDidChange")
}