diff options
author | Ruben Pollan <meskio@sindominio.net> | 2020-09-24 12:24:48 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2020-09-24 16:50:04 +0200 |
commit | 998b5cb54ad23be1f6df0ee8abd08af5614f38db (patch) | |
tree | aafb1c6f11ba23da120b29170ed712d6a07d5336 /pkg/bitmask/autostart.go | |
parent | 3a74c28cce41fe783d9dde707ebb6de941d5cf0a (diff) |
[feat] send cmd flags to the go backend
Also disable autostart if manual quit, remove custom printer that was
used for i18n and disable previous autostart if -disable-autostart
We didn't disable autostart after the migration to qt.
- Resolves: #355 #289
Diffstat (limited to 'pkg/bitmask/autostart.go')
-rw-r--r-- | pkg/bitmask/autostart.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/bitmask/autostart.go b/pkg/bitmask/autostart.go index 9e37fe4..f314dbc 100644 --- a/pkg/bitmask/autostart.go +++ b/pkg/bitmask/autostart.go @@ -36,7 +36,7 @@ type Autostart interface { } // newAutostart creates a handler for the autostart of your platform -func newAutostart(appName string, iconPath string) Autostart { +func NewAutostart(appName string, iconPath string) Autostart { exec := os.Args if os.Getenv("SNAP") != "" { re := regexp.MustCompile("/snap/([^/]*)/") @@ -65,12 +65,12 @@ func newAutostart(appName string, iconPath string) Autostart { } } -type dummyAutostart struct{} +type DummyAutostart struct{} -func (a *dummyAutostart) Disable() error { +func (a *DummyAutostart) Disable() error { return nil } -func (a *dummyAutostart) Enable() error { +func (a *DummyAutostart) Enable() error { return nil } |