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