diff options
author | Sam Whited <sam@samwhited.com> | 2022-03-11 13:22:29 -0500 |
---|---|---|
committer | Sam Whited <sam@samwhited.com> | 2022-03-15 09:26:50 -0400 |
commit | 2d95d4d069124df4a4e2473fc23ad3feed19905d (patch) | |
tree | 4e53db9f07cfda2e17745a6870f294db2d4eb756 /vendor/github.com/ProtonMail/go-autostart/README.md | |
parent | c8dc651f72c09ce252cee729bfc09d8ca6744c36 (diff) |
Remove vendor from git
Previously we saved the vendor tree in version control, making any
commit that changed a dependency rather large.
Go Modules gives us most of the advantages of vendoring except that if a
dependency which is not stored on the proxy is deleted we would lose
access to it.
For now, we can remove the vendor tree and when we get CI working again
we can possibly generate and save the vendor tree as a build artifact.
Signed-off-by: Sam Whited <sam@samwhited.com>
Diffstat (limited to 'vendor/github.com/ProtonMail/go-autostart/README.md')
-rw-r--r-- | vendor/github.com/ProtonMail/go-autostart/README.md | 51 |
1 files changed, 0 insertions, 51 deletions
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 |