diff --git a/standalone.go b/standalone.go
index 41b3c942eeac83c531a43f2bc7ea8dc7f0264df5..0808da6743db186c8534a14ab8fcc065225f27b5 100644
--- a/standalone.go
+++ b/standalone.go
@@ -21,6 +21,7 @@ import (
 	"fmt"
 	"log"
 	"os"
+	"path/filepath"
 	"regexp"
 
 	"0xacab.org/leap/bitmask-systray/bitmask"
@@ -54,6 +55,13 @@ func newAutostart(appName string, iconPath string) autostart {
 		}
 	}
 
+	if exec[0][:2] == "./" || exec[0][:2] == ".\\" {
+		var err error
+		exec[0], err = filepath.Abs(exec[0])
+		if err != nil {
+			log.Printf("Error making the path absolute directory: %v", err)
+		}
+	}
 
 	return &pmautostart.App{
 		Name:        appName,