diff --git a/cmd/appherder/systemd.go b/cmd/appherder/systemd.go index c57c96c..6414588 100644 --- a/cmd/appherder/systemd.go +++ b/cmd/appherder/systemd.go @@ -43,6 +43,9 @@ func disableUnits(units []string) error { } func binaryPath() (string, error) { + if appimage := os.Getenv("APPIMAGE"); appimage != "" { + return appimage, nil + } bin, err := os.Executable() if err != nil { return "", fmt.Errorf("resolve appherder binary: %w", err)