Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
appflowy committed Jul 28, 2024
1 parent f3b678e commit da6ff7b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions appflowy-plugin/src/core/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,13 @@ pub fn handle_macos_security_check(plugin_info: &PluginInfo) {
// The presence of this attribute can cause the system to display a permission error, such as:
// code: 1, kind: PermissionDenied, message: "Operation not permitted"
for attr in list {
if attr == "com.apple.quarantine" {
has_quarantine = true;
}
trace!("{:?}: xattr: {:?}", plugin_info.exec_path, attr);
if attr == "com.apple.lastuseddate#PS" {
has_lastuseddate = true;
}
if cfg!(debug_assertions) {
trace!("{:?}: xattr: {:?}", plugin_info.exec_path, attr);
}
}

if has_quarantine && !has_lastuseddate {
if !has_lastuseddate {
open_manually = true;
}
},
Expand Down

0 comments on commit da6ff7b

Please sign in to comment.