From be06ea09f08965f2471b6ca8edc02c4f04ee4a23 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 26 Mar 2024 11:52:23 -0400 Subject: [PATCH] Tweak wording of Mac Documents Folder permission dialog. Don't automatically launch System Settings since it hides dialog. --- adapters/standalone.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/adapters/standalone.cpp b/adapters/standalone.cpp index 3dcbff86..3afb242a 100644 --- a/adapters/standalone.cpp +++ b/adapters/standalone.cpp @@ -135,12 +135,13 @@ int main(int argc, char* argv[]) { logger::logPath = asset::user("log.txt"); } if (!logger::init()) { - std::string msg = "Cannot access Rack's user folder " + asset::userDir; + std::string msg = "Cannot access Rack's user folder:"; + msg += "\n" + asset::userDir; #if defined ARCH_MAC // The user likely clicked "Don't Allow" on the Documents Folder permissions dialog, so tell them how to allow it. - msg += "\n\nMake sure Rack has permission by opening Apple's System Settings and enabling Privacy & Security > Files and Folders > " + APP_NAME + " " + APP_VERSION_MAJOR + " " + APP_EDITION_NAME + " > Documents Folder."; + msg += "\n\nGive permission to Rack by opening Apple's System Settings and enabling Privacy & Security > Files and Folders > " + APP_NAME + " " + APP_VERSION_MAJOR + " " + APP_EDITION_NAME + " > Documents Folder."; // Launch Apple's Privacy & Security settings - std::system("open x-apple.systempreferences:com.apple.preference.security"); + // std::system("open x-apple.systempreferences:com.apple.preference.security"); #endif osdialog_message(OSDIALOG_ERROR, OSDIALOG_OK, msg.c_str()); exit(1);