Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup autostart application when OS startsup. #16

Open
ShellAlbert opened this issue Aug 11, 2019 · 1 comment
Open

setup autostart application when OS startsup. #16

ShellAlbert opened this issue Aug 11, 2019 · 1 comment

Comments

@ShellAlbert
Copy link
Owner

QQ截图20190811135205
QQ截图20190811135221
QQ截图20190811135233

@ShellAlbert
Copy link
Owner Author

ShellAlbert commented Aug 11, 2019

启动root账户(使用root账户登录并自动运行程序)
QQ截图20190811145133

/root/.config/autostart/p16.desktop
[Desktop Entry]
Type=Application
Exec=bash /home/zhangshaoyan/p16/monitor.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=p16
Comment[en_US]=
Comment=

经过这样设置后,当以root登录ubuntu桌面系统时,程序monitor.sh会自动启动。
可以设置自动登录,这样就不用手工登录了。
以后找到更好的”自动启动“的方法,可以替换。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant