From d3c7abb7eba8658667b0962cacc6ecd3526fc792 Mon Sep 17 00:00:00 2001 From: kali Date: Fri, 30 Oct 2020 22:11:20 +0100 Subject: [bug] remove debug console in windows squashed in this commit: reintroduce the dummy autostart_win implementation that was removed by mistake. I did not manage to get autostart working in windows, this is pending to be re-worked. see https://0xacab.org/leap/bitmask-vpn/-/issues/389 --- pkg/bitmask/autostart_win.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pkg/bitmask/autostart_win.go (limited to 'pkg/bitmask') diff --git a/pkg/bitmask/autostart_win.go b/pkg/bitmask/autostart_win.go new file mode 100644 index 0000000..51ac0cd --- /dev/null +++ b/pkg/bitmask/autostart_win.go @@ -0,0 +1,23 @@ +// +build windows +package bitmask + +// Workaround for broken autostart package on windows. + +type DummyAutostart struct{} + +func (a *DummyAutostart) Disable() error { + return nil +} + +func (a *DummyAutostart) Enable() error { + return nil +} + +type Autostart interface { + Disable() error + Enable() error +} + +func NewAutostart(appName string, iconPath string) Autostart { + return &DummyAutostart{} +} -- cgit v1.2.3