From 65172ebd608e929651544057d942a7cf8d74847c Mon Sep 17 00:00:00 2001 From: Povilas Kanapickas Date: Fri, 19 Oct 2018 20:17:17 +0300 Subject: [PATCH] OSX: Explain why the app needs to go into /Applications (#158) --- src/gui/src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/src/main.cpp b/src/gui/src/main.cpp index b00ab7f1..c01c8f76 100644 --- a/src/gui/src/main.cpp +++ b/src/gui/src/main.cpp @@ -74,8 +74,13 @@ int main(int argc, char* argv[]) QBarrierApplication app(argc, argv); #if defined(Q_OS_MAC) - if (app.applicationDirPath().startsWith("/Volumes/")) { + // macOS preferences track applications allowed assistive access by path + // Unfortunately, there's no user-friendly way to allow assistive access + // to applications that are not in default paths (/Applications), + // especially if an identically named application already exists in + // /Applications). Thus we require Barrier to reside in the /Applications + // folder QMessageBox::information( NULL, "Barrier", "Please drag Barrier to the Applications folder, and open it from there.");