mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-23 19:43:27 +01:00
macOS: Use correct Disk Utility location when "check filesystem" is ran (#1273)
This commit is contained in:
parent
ff93a6021f
commit
87a9508fdd
@ -107,7 +107,13 @@ namespace VeraCrypt
|
||||
void CoreMacOSX::CheckFilesystem (shared_ptr <VolumeInfo> mountedVolume, bool repair) const
|
||||
{
|
||||
list <string> args;
|
||||
args.push_back ("/Applications/Utilities/Disk Utility.app");
|
||||
struct stat sb;
|
||||
|
||||
if (stat("/Applications/Utilities/Disk Utility.app", &sb) == 0)
|
||||
args.push_back ("/Applications/Utilities/Disk Utility.app");
|
||||
else
|
||||
args.push_back ("/System/Applications/Utilities/Disk Utility.app");
|
||||
|
||||
Process::Execute ("open", args);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user