Skip to content

Commit

Permalink
chore: fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Jul 15, 2024
1 parent a446e04 commit fd7e54b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions appflowy-plugin/src/core/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use serde::{Deserialize, Serialize};
use serde_json::{json, Value as JsonValue};
use std::io::BufReader;
use std::path::{Path, PathBuf};
use std::process::{Child, Command, Stdio};
use std::process::{Child, Stdio};
use std::sync::Arc;
use std::thread;
use std::time::Instant;
Expand Down Expand Up @@ -327,7 +327,10 @@ pub fn handle_macos_security_check(plugin_info: &PluginInfo) {
trace!("Open plugin file manually: {:?}", plugin_info.exec_path);
// Using 'open' to trigger the macOS security check. After the user allows opening the binary,
// any subsequent 'open' command will not trigger the security check and the binary will run with permission.
if let Err(err) = Command::new("open").arg(&plugin_info.exec_path).output() {
if let Err(err) = std::process::Command::new("open")
.arg(&plugin_info.exec_path)
.output()
{
error!("Failed to open plugin file: {:?}", err);
}
}
Expand Down

0 comments on commit fd7e54b

Please sign in to comment.