summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'pkg')
-rw-r--r--pkg/bitmask/autostart_win.go23
1 files changed, 23 insertions, 0 deletions
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{}
+}