From fde18e485ff7cbc7b2e33dade8e81136f06a5b60 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Thu, 8 Aug 2019 00:19:33 +0200 Subject: [pkg] remove vendor --- .../github.com/ProtonMail/go-autostart/README.md | 51 ---------------------- 1 file changed, 51 deletions(-) delete mode 100644 vendor/github.com/ProtonMail/go-autostart/README.md (limited to 'vendor/github.com/ProtonMail/go-autostart/README.md') diff --git a/vendor/github.com/ProtonMail/go-autostart/README.md b/vendor/github.com/ProtonMail/go-autostart/README.md deleted file mode 100644 index 580862f..0000000 --- a/vendor/github.com/ProtonMail/go-autostart/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# go-autostart - -[![GoDoc](https://godoc.org/github.com/ProtonMail/go-autostart?status.svg)](https://godoc.org/github.com/ProtonMail/go-autostart) - -A Go library to run a command after login. - -## Usage - -```go -package main - -import ( - "log" - "github.com/ProtonMail/go-autostart" -) - -func main() { - app := &autostart.App{ - Name: "test", - DisplayName: "Just a Test App", - Exec: []string{"bash", "-c", "echo autostart >> ~/autostart.txt"}, - } - - if app.IsEnabled() { - log.Println("App is already enabled, removing it...") - - if err := app.Disable(); err != nil { - log.Fatal(err) - } - } else { - log.Println("Enabling app...") - - if err := app.Enable(); err != nil { - log.Fatal(err) - } - } - - log.Println("Done!") -} -``` - -## Behavior - -* On Linux and BSD, it creates a `.desktop` file in `$XDG_CONFIG_HOME/autostart` - (i.e. `$HOME/.config/autostart`). See http://askubuntu.com/questions/48321/how-do-i-start-applications-automatically-on-login -* On macOS, it creates a `launchd` job. See http://blog.gordn.org/2015/03/implementing-run-on-login-for-your-node.html -* On Windows, it creates a link to the program in `%USERPROFILE%\Start Menu\Programs\Startup` - -## License - -MIT -- cgit v1.2.3