summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/main.go b/main.go
index 75745da..7ce0ba3 100644
--- a/main.go
+++ b/main.go
@@ -81,7 +81,12 @@ func main() {
defer b.Close()
go checkAndStartBitmask(b, notify, conf)
- run(b, conf, notify)
+ as := newAutostart(applicationName, getIconPath())
+ err = as.Enable()
+ if err != nil {
+ log.Printf("Error enabling autostart: %v", err)
+ }
+ run(b, conf, notify, as)
}
func checkAndStartBitmask(b bitmask.Bitmask, notify *notificator, conf *systrayConfig) {