3b6364d6783e9fe9b2897902236e3ef85b2cce12
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Fix thunderbird autostart
Diff
1diff --git a/dot_config/systemd/user/thunderbird-autostart.service b/dot_config/systemd/user/thunderbird-autostart.service
2index cf02731a41d06ef95de9699261dd7083e2a8e12d..36abe2ff2e5cec6e4e2e19eccfca3d01f176df08 100644
3--- a/dot_config/systemd/user/thunderbird-autostart.service
4+++ b/dot_config/systemd/user/thunderbird-autostart.service
5@@ -1,10 +1,10 @@
6 [Unit]
7-Description=Start Thunderbird after Proton Mail Bridge
8+Description=Start Thunderbird after Proton Mail Bridge is ready
9 Requires=protonmail-bridge.service
10 After=protonmail-bridge.service
11
12 [Service]
13 Type=oneshot
14 TimeoutStartSec=60
15-ExecStartPre=/usr/bin/bash -c 'for i in {1..60}; do /usr/bin/nc -z -w1 127.0.0.1 1143 && /usr/bin/nc -z -w1 127.0.0.1 1025 && exit 0; sleep 1; done; exit 1'
16+ExecStartPre=/usr/bin/bash -c 'for i in {1..60}; do /usr/bin/nc -z -w1 localhost 1143 && exit 0; sleep 1; done; exit 1'
17 ExecStart=/usr/bin/uwsm app -- org.mozilla.Thunderbird.desktop