Skip to content

Commit

Permalink
Use custom bundle ID to clear icon cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie committed May 26, 2016
1 parent 8a302d9 commit 81714f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Terminal Notifier.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@
GCC_PREFIX_HEADER = "Terminal Notifier/Terminal Notifier-Prefix.pch";
INFOPLIST_FILE = "Terminal Notifier/Terminal Notifier-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_BUNDLE_IDENTIFIER = "nl.superalloy.oss.terminal-notifier.radiant";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SDKROOT = macosx;
Expand All @@ -281,6 +282,7 @@
GCC_PREFIX_HEADER = "Terminal Notifier/Terminal Notifier-Prefix.pch";
INFOPLIST_FILE = "Terminal Notifier/Terminal Notifier-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.8;
PRODUCT_BUNDLE_IDENTIFIER = "nl.superalloy.oss.terminal-notifier.radiant";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SDKROOT = macosx;
Expand Down
4 changes: 2 additions & 2 deletions Terminal Notifier/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#import <ScriptingBridge/ScriptingBridge.h>
#import <objc/runtime.h>

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

// Set OS Params
Expand Down Expand Up @@ -75,7 +75,7 @@ +(void)initializeUserDefaults

if (isMavericks()) {
//10.9
appDefaults = @{@"sender": @"com.apple.Terminal"};
appDefaults = @{@"sender": TerminalNotifierBundleID};
} else {
//10.8
appDefaults = @{@"": @"message"};
Expand Down
2 changes: 1 addition & 1 deletion Terminal Notifier/Terminal Notifier-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string>Terminal</string>
<key>CFBundleIdentifier</key>
<string>nl.superalloy.oss.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down

0 comments on commit 81714f6

Please sign in to comment.