Open ShellAlbert opened 4 years ago
启动root账户(使用root账户登录并自动运行程序)
/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会自动启动。 可以设置自动登录,这样就不用手工登录了。 以后找到更好的”自动启动“的方法,可以替换。