From fa08af4697c14c5a365ed7ec2b2dce3f67386d49 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Mon, 9 Jul 2018 23:34:14 +0200 Subject: [feat] autostart the standalone systray if the vpn was on - Resolves: #8 --- standalone.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'standalone.go') 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, + } +} -- cgit v1.2.3