summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Belt <andrewpbelt@gmail.com>2024-03-26 11:52:23 -0400
committerAndrew Belt <andrewpbelt@gmail.com>2024-03-26 11:52:23 -0400
commitbe06ea09f08965f2471b6ca8edc02c4f04ee4a23 (patch)
tree0c01d97d9ba6a7dbf441144d1097595bb56d1ef1
parentba84d1446716dd7732f122da9160270e08929aa5 (diff)
Tweak wording of Mac Documents Folder permission dialog. Don't automatically launch System Settings since it hides dialog.
-rw-r--r--adapters/standalone.cpp7
1 files 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);