赞
踩
1、打开终端,执行gnome-session-properties,进入启动应用程序首选项界面
2、添加一个启动程序,输入命令:gnome-terminal -x /home/donf/xxx.sh,点击确定保存
3、编辑xxx.sh脚本,输入内容如下:
- #!/bin/sh
- date;sleep 5;date;
- cd /home/donf/
- ./xxx.sh
- date;sleep 1h;date;
想要增加图标,可以在~/.config/autostart下增加xx.desktop
参考https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
- [Desktop Entry]
- Type=Application
- Exec=/home/du/xx.sh
- Icon=/home/du/xx.ico
- Hidden=false
- X-CNOME-Autostart-enabled=true
- Name[en_US]=gnome-terminal
- Name=gnome-terminal
- Comment=xx
- Categories=Applications;
1、可以通过上面的方式,不用gnome-terminal启动即可
2、修改/etc/rc.local
- cd /home/donf/
- ./xxx.sh
- exit 0
参考https://blog.csdn.net/wejfoasdbsdg/article/details/50922416
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。