From c84d8846ce264ce130bd82d547249fcecd0b8759 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 11 Dec 2018 21:49:04 -0800 Subject: [PATCH] =?UTF-8?q?Get=20app=20identifier=20from=20bundle=20rather?= =?UTF-8?q?=20than=20hard-coding=20it.=20It=E2=80=99s=20different=20for=20?= =?UTF-8?q?the=20MAS=20build.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NetNewsWire/AppDelegate.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NetNewsWire/AppDelegate.swift b/NetNewsWire/AppDelegate.swift index e84237787..88d52f1cf 100644 --- a/NetNewsWire/AppDelegate.swift +++ b/NetNewsWire/AppDelegate.swift @@ -140,7 +140,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations, currentTheme = themeLoader.defaultTheme let tempDirectory = NSTemporaryDirectory() - let cacheFolder = (tempDirectory as NSString).appendingPathComponent("com.ranchero.NetNewsWire-Evergreen") + let bundleIdentifier = (Bundle.main.infoDictionary!["CFBundleIdentifier"]! as! String) + let cacheFolder = (tempDirectory as NSString).appendingPathComponent(bundleIdentifier) let faviconsFolder = (cacheFolder as NSString).appendingPathComponent("Favicons") let faviconsFolderURL = URL(fileURLWithPath: faviconsFolder)