diff options
Diffstat (limited to 'standalone.go')
-rw-r--r-- | standalone.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/standalone.go b/standalone.go index cda78f8..a9f135d 100644 --- a/standalone.go +++ b/standalone.go @@ -17,10 +17,22 @@ package main import ( + "os" + "0xacab.org/leap/bitmask-systray/bitmask" standalone "0xacab.org/leap/bitmask-systray/standalone" + pmautostart "github.com/ProtonMail/go-autostart" ) func initBitmask() (bitmask.Bitmask, error) { return standalone.Init() } + +func newAutostart(appName string, iconPath string) autostart { + return &pmautostart.App{ + Name: appName, + Exec: os.Args, + DisplayName: appName, + Icon: iconPath, + } +} |