开机自启动脚本
Tofloor
poster avatar
aixiangfei
deepin
2020-09-06 21:50
Author
我想要在开机的时候自动执行一段脚本,以前好像时可以在 .xproile 里面设置的,现在新版的 uos 没有效果。
如果我在 .bashrc 里面设置,那么我每次打开终端都会执行一遍我的脚本,我只希望在开机后执行一次脚本就行了,请问下如何配置?
Reply Favorite View the author
All Replies
yexiaoqi
deepin
2020-09-06 22:25
#1
https://www.cnblogs.com/liuhaido ... 09/19/11549997.html多搜搜,总有一种办法适合你
Reply View the author
今风
deepin
2020-09-06 22:43
#2
在 ~/.config/autostart 目录下添加  个程序快捷图标。
Reply View the author
aixiangfei
deepin
2020-09-06 23:16
#3
https://bbs.deepin.org/post/201470
https://www.cnblogs.com/liuhaido ... 09/19/11549997.html多搜搜,总有一种办法适合你

谢谢分享。我在 /etc/profile.d/ 目录下创建了我的脚本文件,测试成功了。
另外好像deepin对自启动这个功能做了什么限制,比如我的 有道词典 设置开机自动启动,就没有效果,重启电脑后发现这个选项自动被取消了。
Reply View the author