OSX: Explain why the app needs to go into /Applications (#158)

This commit is contained in:
Povilas Kanapickas 2018-10-19 20:17:17 +03:00 committed by Adrian Lucrèce Céleste
parent b8fa610f8f
commit 65172ebd60
1 changed files with 6 additions and 1 deletions

View File

@ -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.");