diff options
author | Jason Cox <me@jasoncarloscox.com> | 2024-02-22 20:25:16 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-04-13 21:46:35 +0200 |
commit | 4a0bb5d1840f282989bb6b4e3ec16d3da4d5c7f7 (patch) | |
tree | 4440ae9566d38fb52ce0f12ac3fccbcf9bd10f32 /app/app.go | |
parent | 8312b46f144cc1bcf5b6838854df2a9b167c1c3a (diff) | |
download | aerc-4a0bb5d1840f282989bb6b4e3ec16d3da4d5c7f7.tar.gz |
ipc: retry failed command directly, not over IPC
If IPC fails the first time we try it, we know that no other aerc
instance is running. When we retry, run the command directly instead of
going through the current instance's own IPC server.
Signed-off-by: Jason Cox <me@jasoncarloscox.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'app/app.go')
-rw-r--r-- | app/app.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -26,6 +26,7 @@ func Init( func Drawable() ui.DrawableInteractive { return &aerc } func IPCHandler() ipc.Handler { return &aerc } +func Command(args []string) error { return aerc.Command(args) } func HandleMessage(msg types.WorkerMessage) { aerc.HandleMessage(msg) } func CloseBackends() error { return aerc.CloseBackends() } |