Skip to content

Commit

Permalink
xattr command removed from the restarting script to avoid the macOS n…
Browse files Browse the repository at this point in the history
…otification (#3057)

Task/Issue URL:
https://app.asana.com/0/1201048563534612/1207945245157372/f

**Description**:
xattr command removed from the restarting script to avoid the macOS
notification.
  • Loading branch information
tomasstrba authored Aug 1, 2024
1 parent d2b49e5 commit 8f59f09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DuckDuckGo/Updates/AppRestarter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ final class AppRestarter: AppRestarting {
return
}

let preOpenCmd = "/usr/bin/xattr -d -r com.apple.quarantine \(shellQuotedString(destinationPath))"
let openCmd = "/usr/bin/open \(shellQuotedString(destinationPath))"

let script = """
(while /bin/kill -0 \(pid) >&/dev/null; do /bin/sleep 0.1; done; \(preOpenCmd); \(openCmd)) &
(while /bin/kill -0 \(pid) >&/dev/null; do /bin/sleep 0.1; done; \(openCmd)) &
"""

let task = Process()
Expand Down

0 comments on commit 8f59f09

Please sign in to comment.