| 72 security add-generic-password -a myrepo -s borg-backup -w [PASSWORD] |
72 security add-generic-password -a myrepo -s borg-backup -w [PASSWORD] |
| 73 |
73 |
| 74 To permanently authenticate Borgend to use the keychain, and therefore not |
74 To permanently authenticate Borgend to use the keychain, and therefore not |
| 75 have to enter the keychain password every time Borgend is launched, it is |
75 have to enter the keychain password every time Borgend is launched, it is |
| 76 useful to encapculate it into a macOS app. This can be done with |
76 useful to encapculate it into a macOS app. This can be done with |
| |
77 [py2app](https://py2app.readthedocs.io/en/latest/install.html). |
| |
78 To create a standalone app that you can launch at startup and give permanent |
| |
79 permissions to the keychain, use |
| 77 |
80 |
| 78 - [py2app](https://py2app.readthedocs.io/en/latest/install.html). |
81 python3 setup.py py2app |
| 79 |
|
| 80 To create an app that you can launch at startup and give permanent permissions |
|
| 81 to the keychain, use |
|
| 82 |
|
| 83 python3 setup.py py2app -A |
|
| 84 |
82 |
| 85 The app hould be placed under `dist/`. Copy it to your `Applications` |
83 The app hould be placed under `dist/`. Copy it to your `Applications` |
| 86 directory, and set it up to launch on login. |
84 directory, and set it up to launch on login. |
| 87 |
85 |
| 88 If you are keen on wasting your life, you can try to run py2app without the |
86 Py2app is _flaky_ to say the least. If the positions of sunspots so dictate, |
| 89 `-A` option to create a standalone app that you can copy to computers without |
87 the above command may not create a working standalone application. If this is |
| 90 Python installed. This will, however, most likely not work because py2app |
88 the case, you may attempt to add the `-A` option to the command. It will |
| 91 is shit. Currently (2018-09-18) it is not working with the keyring package. |
89 then create a non-standalone application. While not easily transferrable |
| |
90 between different machines, it will still help with keychain permissions. |
| 92 |
91 |