| 41 - [rumps](https://github.com/jaredks/rumps) (Ridiculously Uncomplicated |
44 - [rumps](https://github.com/jaredks/rumps) (Ridiculously Uncomplicated |
| 42 macOS Python Statusbar apps) |
45 macOS Python Statusbar apps) |
| 43 - [xdg](https://pypi.python.org/pypi/xdg/3.0.0) for configuration file |
46 - [xdg](https://pypi.python.org/pypi/xdg/3.0.0) for configuration file |
| 44 location (not needed on macOS) |
47 location (not needed on macOS) |
| 45 |
48 |
| 46 With the dependencies satisfied, Borgend may be run with |
49 With the dependencies satisfied, and Borgend downloaded, it may be run from |
| |
50 its download location with |
| 47 |
51 |
| 48 python3 borgend.py |
52 python3 borgend.py |
| 49 |
53 |
| 50 To permanently authenticate Borgend to use the keychain, and therefore not |
54 Before this, you will probably, however, want to create a configuration file as detailed below. |
| 51 have to enter the keychain password every time Borgend is launched, it is |
|
| 52 useful to create a standalone Mac app. This can be done with |
|
| 53 |
|
| 54 - [py2app](https://py2app.readthedocs.io/en/latest/install.html). |
|
| 55 |
|
| 56 To create an app that you can launch at startup and give permanent permissions |
|
| 57 to the keychain, use |
|
| 58 |
|
| 59 python3 setup.py py2app -A |
|
| 60 |
|
| 61 The app hould be placed under `dist/`. Copy it to your `Applications` |
|
| 62 directory, and set it up to launch on login. |
|
| 63 |
|
| 64 If you are keen on wasting your life, you can try to run py2app without the |
|
| 65 `-A` option to create a standalone app that you can copy to computers without |
|
| 66 Python installed, but it will probably most likely not work because py2app |
|
| 67 is shit. Currently (2018-09-18) it is not working with the keyring package. |
|
| 68 |
|
| 69 |
55 |
| 70 ## Usage and configuration |
56 ## Usage and configuration |
| 71 |
57 |
| 72 ### Configuration file |
58 ### Configuration file |
| 73 |
59 |
| 91 `borg-backup`. To add a password into the keychain for the `myrepo` |
77 `borg-backup`. To add a password into the keychain for the `myrepo` |
| 92 ‘account’, you may use: |
78 ‘account’, you may use: |
| 93 |
79 |
| 94 security add-generic-password -a myrepo -s borg-backup -w [PASSWORD] |
80 security add-generic-password -a myrepo -s borg-backup -w [PASSWORD] |
| 95 |
81 |
| |
82 To permanently authenticate Borgend to use the keychain, and therefore not |
| |
83 have to enter the keychain password every time Borgend is launched, it is |
| |
84 useful to encapculate it into a macOS app. This can be done with |
| |
85 |
| |
86 - [py2app](https://py2app.readthedocs.io/en/latest/install.html). |
| |
87 |
| |
88 To create an app that you can launch at startup and give permanent permissions |
| |
89 to the keychain, use |
| |
90 |
| |
91 python3 setup.py py2app -A |
| |
92 |
| |
93 The app hould be placed under `dist/`. Copy it to your `Applications` |
| |
94 directory, and set it up to launch on login. |
| |
95 |
| |
96 If you are keen on wasting your life, you can try to run py2app without the |
| |
97 `-A` option to create a standalone app that you can copy to computers without |
| |
98 Python installed. This will, however, most likely not work because py2app |
| |
99 is shit. Currently (2018-09-18) it is not working with the keyring package. |