Skip to content

Commit 81714f6

Browse files
Use custom bundle ID to clear icon cache
1 parent 8a302d9 commit 81714f6

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Terminal Notifier.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266
GCC_PREFIX_HEADER = "Terminal Notifier/Terminal Notifier-Prefix.pch";
267267
INFOPLIST_FILE = "Terminal Notifier/Terminal Notifier-Info.plist";
268268
MACOSX_DEPLOYMENT_TARGET = 10.8;
269+
PRODUCT_BUNDLE_IDENTIFIER = "nl.superalloy.oss.terminal-notifier.radiant";
269270
PRODUCT_NAME = "$(TARGET_NAME)";
270271
PROVISIONING_PROFILE = "";
271272
SDKROOT = macosx;
@@ -281,6 +282,7 @@
281282
GCC_PREFIX_HEADER = "Terminal Notifier/Terminal Notifier-Prefix.pch";
282283
INFOPLIST_FILE = "Terminal Notifier/Terminal Notifier-Info.plist";
283284
MACOSX_DEPLOYMENT_TARGET = 10.8;
285+
PRODUCT_BUNDLE_IDENTIFIER = "nl.superalloy.oss.terminal-notifier.radiant";
284286
PRODUCT_NAME = "$(TARGET_NAME)";
285287
PROVISIONING_PROFILE = "";
286288
SDKROOT = macosx;

Terminal Notifier/AppDelegate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#import <ScriptingBridge/ScriptingBridge.h>
33
#import <objc/runtime.h>
44

5-
NSString * const TerminalNotifierBundleID = @"nl.superalloy.oss.terminal-notifier";
5+
NSString * const TerminalNotifierBundleID = @"nl.superalloy.oss.terminal-notifier.radiant";
66
NSString * const NotificationCenterUIBundleID = @"com.apple.notificationcenterui";
77

88
// Set OS Params
@@ -75,7 +75,7 @@ +(void)initializeUserDefaults
7575

7676
if (isMavericks()) {
7777
//10.9
78-
appDefaults = @{@"sender": @"com.apple.Terminal"};
78+
appDefaults = @{@"sender": TerminalNotifierBundleID};
7979
} else {
8080
//10.8
8181
appDefaults = @{@"": @"message"};

Terminal Notifier/Terminal Notifier-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>CFBundleIconFile</key>
1010
<string>Terminal</string>
1111
<key>CFBundleIdentifier</key>
12-
<string>nl.superalloy.oss.${PRODUCT_NAME:rfc1034identifier}</string>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>

0 commit comments

Comments
 (0)