Mac OS X: on access denied open "all files & folders" prefs instead of "full disk access"

This commit is contained in:
Floris Bos 2020-12-01 15:51:45 +01:00
parent 95ce718d41
commit f5b36b6dd0

View file

@ -192,7 +192,7 @@ bool DownloadThread::_openAndPrepareDevice()
} else if (authopenresult == _file.authOpenError) { } else if (authopenresult == _file.authOpenError) {
QString msg = tr("Error running authopen to gain access to disk device '%1'").arg(QString(_filename)); QString msg = tr("Error running authopen to gain access to disk device '%1'").arg(QString(_filename));
msg += "<br>"+tr("Please verify if 'Raspberry Pi Imager' is allowed access to 'removable volumes' in privacy settings (under 'files and folders' or alternatively give it 'full disk access')."); msg += "<br>"+tr("Please verify if 'Raspberry Pi Imager' is allowed access to 'removable volumes' in privacy settings (under 'files and folders' or alternatively give it 'full disk access').");
QProcess::execute("open x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles"); QProcess::execute("open x-apple.systempreferences:com.apple.preference.security?Privacy_RemovableVolume");
emit error(msg); emit error(msg);
return false; return false;
} }