Skip to content

Commit 263d5cb

Browse files
dlonMarkusPettersson98
authored andcommitted
Add help text for enabling full disk access to the CLI
1 parent de60ef1 commit 263d5cb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mullvad-cli/src/format.rs

+11
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,17 @@ fn print_error_state(error_state: &ErrorState) {
225225
println!("Blocked: {cause}");
226226
println!("Your kernel might be terribly out of date or missing nftables");
227227
}
228+
#[cfg(target_os = "macos")]
229+
cause @ talpid_types::tunnel::ErrorStateCause::NeedFullDiskPermissions => {
230+
println!("Blocked: {cause}");
231+
println!();
232+
println!(r#"Enable "Full Disk Access" for "Mullvad VPN" in the macOS system settings:"#);
233+
println!(r#"open "x-apple.systempreferences:com.apple.preference.security?Privacy_AllFiles"#);
234+
println!();
235+
println!("Restart the Mullvad daemon for the change to take effect:");
236+
println!("launchctl unload -w /Library/LaunchDaemons/net.mullvad.daemon.plist");
237+
println!("launchctl load -w /Library/LaunchDaemons/net.mullvad.daemon.plist");
238+
}
228239
talpid_types::tunnel::ErrorStateCause::AuthFailed(Some(auth_failed)) => {
229240
println!(
230241
"Blocked: Authentication with remote server failed: {}",

0 commit comments

Comments
 (0)