1 Star 0 Fork 5

xihongshi / autostart

forked from Gitee 极速下载 / autostart 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Autostart

stable license download_count download

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

MIT License Copyright (c) 2018 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Autostart 开源的自启动设置小工具,跨平台,使用方式统一,兼容 windows、mac、linux 桌面版,特别适用于需要开机启动的跨平台程序调用,实现自启动,屏蔽了麻烦的 展开 收起
Shell
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Shell
1
https://gitee.com/ha_ha_ha/autostart.git
git@gitee.com:ha_ha_ha/autostart.git
ha_ha_ha
autostart
autostart
master

搜索帮助