Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove potential osascript hijacking

Mikayla5a356a47103f
diff --git a/crates/install_cli/src/install_cli.rs b/crates/install_cli/src/install_cli.rs
index adf50586d75..5d16054182d 100644
--- a/crates/install_cli/src/install_cli.rs
+++ b/crates/install_cli/src/install_cli.rs
@@ -29,7 +29,7 @@ pub async fn install_cli(cx: &AsyncAppContext) -> Result<()> {
// The symlink could not be created, so use osascript with admin privileges
// to create it.
- let status = smol::process::Command::new("osascript")
+ let status = smol::process::Command::new("/usr/bin/osascript")
.args([
"-e",
&format!(
diff --git a/crates/zed/resources/zed.entitlements b/crates/zed/resources/zed.entitlements
index 07af3124cd3..f40a8a253ad 100644
--- a/crates/zed/resources/zed.entitlements
+++ b/crates/zed/resources/zed.entitlements
@@ -18,11 +18,7 @@
<true/>
<key>com.apple.security.personal-information.photos-library</key>
<true/>
- <key>com.apple.security.cs.allow-dyld-environment-variables</key>
- <true/>
- <key>com.apple.security.cs.allow-unsigned-executable-memory</key>
- <true/>
- <key>com.apple.security.cs.disable-library-validation</key>
- <true/>
+ <!-- <key>com.apple.security.cs.disable-library-validation</key>
+ <true/> -->
</dict>
</plist>