blob: fa8d8826522c9eb172b3c55c864a796695dc0c5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#+title: Remove Quarantine
macOS likes putting applications in quarantine without me wanting. This script removes an application from the quarantine.
#+begin_src nix
{ config, pkgs, ... }:
{
home.file."./.local/bin/remove-quarantine" = {
executable = true;
text = ''
#+end_src
Remove the app from quarantine by recursively deleting the quarantine attribute on the application.
#+begin_src sh
#!/bin/sh
/usr/bin/xattr -dr com.apple.quarantine "$@"
#+end_src
Close the block.
#+begin_src nix
'';
};
}
#+end_src
|