From cf8488d56c8c33f087185d52c8652d60ada4ebcf Mon Sep 17 00:00:00 2001 From: tzvonimir Date: Wed, 6 Nov 2024 12:34:20 +0100 Subject: [PATCH] Quickfix command import issues --- daemon/daemon.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon/daemon.go b/daemon/daemon.go index 54301c7..36f8a76 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -99,7 +99,11 @@ func (d *Daemon) InstallDaemonConfiguration() error { collectCmd := []string{} + // TODO: fix this thing, as it is absolutly not robust, and it might not work in all cases if len(commands) > 0 && commands[0] != "lda" { + if strings.Contains(d.config.ExePath, commands[0]) { + commands = commands[1:] + } for _, command := range commands { d.logger.Debug().Msgf("Checking command path: %s", command) collectCmd = append(collectCmd, command)