aboutsummaryrefslogtreecommitdiffstats
path: root/app/app.go
diff options
context:
space:
mode:
authorJason Cox <me@jasoncarloscox.com>2024-02-22 20:25:16 -0500
committerRobin Jarry <robin@jarry.cc>2024-04-13 21:46:35 +0200
commit4a0bb5d1840f282989bb6b4e3ec16d3da4d5c7f7 (patch)
tree4440ae9566d38fb52ce0f12ac3fccbcf9bd10f32 /app/app.go
parent8312b46f144cc1bcf5b6838854df2a9b167c1c3a (diff)
downloadaerc-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.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/app.go b/app/app.go
index ca9c59bb..7e06ce3b 100644
--- a/app/app.go
+++ b/app/app.go
@@ -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() }