From 438d9bd5ed326a43f614234ffe064b8d29f70ee5 Mon Sep 17 00:00:00 2001 From: Maurice C Parker Date: Thu, 17 Sep 2020 17:46:40 -0500 Subject: [PATCH] Fix URL of System Preferences so that it will open correctly. Issue #2423 --- Mac/Preferences/General/GeneralPrefencesViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/Preferences/General/GeneralPrefencesViewController.swift b/Mac/Preferences/General/GeneralPrefencesViewController.swift index 32818e524..652411f04 100644 --- a/Mac/Preferences/General/GeneralPrefencesViewController.swift +++ b/Mac/Preferences/General/GeneralPrefencesViewController.swift @@ -161,7 +161,7 @@ private extension GeneralPreferencesViewController { updateAlert.addButton(withTitle: NSLocalizedString("Close", comment: "Close")) let modalResponse = updateAlert.runModal() if modalResponse == .alertFirstButtonReturn { - NSWorkspace.shared.open(URL(fileURLWithPath: "x-apple.systempreferences:com.apple.preference.notifications")) + NSWorkspace.shared.open(URL(string: "x-apple.systempreferences:com.apple.preference.notifications")!) } }