https://github.com/snail007/autostart
autostart tools to set your application auto startup after desktop login,only for desktop version of linux , windows , mac.
https://github.com/snail007/autostart
autostart autostarter
Last synced: 6 months ago
JSON representation
autostart tools to set your application auto startup after desktop login,only for desktop version of linux , windows , mac.
- Host: GitHub
- URL: https://github.com/snail007/autostart
- Owner: snail007
- License: mit
- Created: 2018-04-26T04:18:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-26T10:05:02.000Z (over 7 years ago)
- Last Synced: 2025-05-29T21:06:33.574Z (8 months ago)
- Topics: autostart, autostarter
- Language: Go
- Homepage:
- Size: 97.7 KB
- Stars: 98
- Watchers: 6
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Autostart
[](https://github.com/snail007/autostart/) []() [](https://github.com/snail007/autostart/releases) [](https://github.com/snail007/autostart/releases)
autostart tools to set your application auto startup after desktop login,only for desktop version of linux , windows , mac.
# 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
# Usage
On linux and mac , the command is autostart.
On windows , the command is autostart.exe.
## 1.Enable Application autostart.
***linux&mac***
`autostart enable -k "demokey" -n "my demo application" -c "echo \"autostart\">~/autostart.txt"`
help:
`autostart enable --help`
***windows***
`autostart.exe enable -k test -n test -c "c:\\windows\explorer.exe c:"`
help:
`autostart.exe enable --help`
## 2.Disable Application autostart.
***linux&mac***
`autostart disable -k "demokey"`
help:
`autostart disable --help`
***windows***
`autostart.exe disable -k "test"`
help:
`autostart.exe disable --help`