Skip to content

Commit

Permalink
revert: sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
jlp-craigmorten committed Dec 31, 2024
1 parent 4e3595f commit dc6d531
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/macOS/enableAppleScriptControlSystemDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const VOICE_OVER_APPLESCRIPT_ENABLED_DEFAULTS =
"defaults write com.apple.VoiceOver4/default SCREnableAppleScript -bool true";

const VOICE_OVER_APPLESCRIPT_ENABLED_PLUTIL =
"sudo plutil -replace SCREnableAppleScript -bool true ~/Library/Group\\ Containers/group.com.apple.VoiceOver/Library/Preferences/com.apple.VoiceOver4/default.plist";
"plutil -replace SCREnableAppleScript -bool true ~/Library/Group\\ Containers/group.com.apple.VoiceOver/Library/Preferences/com.apple.VoiceOver4/default.plist";

export function enableAppleScriptControlSystemDefaults(): void {
const platformMajor = getPlatformVersionMajor();
Expand Down
2 changes: 1 addition & 1 deletion src/macOS/isAppleScriptControlEnabled/enabledDefaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const VOICE_OVER_APPLESCRIPT_ENABLED_DEFAULTS =
"defaults read com.apple.VoiceOver4/default SCREnableAppleScript";

const VOICE_OVER_APPLESCRIPT_ENABLED_PLUTIL =
"sudo plutil -extract SCREnableAppleScript raw -o - ~/Library/Group\\ Containers/group.com.apple.VoiceOver/Library/Preferences/com.apple.VoiceOver4/default.plist";
"plutil -extract SCREnableAppleScript raw -o - ~/Library/Group\\ Containers/group.com.apple.VoiceOver/Library/Preferences/com.apple.VoiceOver4/default.plist";

export function enabledDefaults(): boolean {
const platformMajor = getPlatformVersionMajor();
Expand Down

0 comments on commit dc6d531

Please sign in to comment.