[Seek Help] deepin 20.2.4开机启动脚本不执行
Tofloor
poster avatar
garfieldtom
deepin
2021-10-27 00:50
Author

请问新版deepin开机启动脚本在哪里设置?尝试了/etc/rc.local,~/.profile都不行,谢谢!

Reply Favorite View the author
All Replies
zengjinc
deepin
2021-10-27 03:38
#1

同问

Reply View the author
y***z@tom.com
deepin
2021-10-27 04:09
#2

如不能开机自动执行  /etc/rc.local 

在 /usr/lib/systemd/system/rc-local.service

添加

[Install]

WantedBy=multi-user.target

Reply View the author
garfieldtom
deepin
2021-10-27 04:59
#3

测试好像还是不能执行,放在~/.bashrc中可以

Reply View the author
安洛
deepin
2021-10-27 06:06
#4

https://wiki.deepin.org/wiki/%E8%87%AA%E5%90%AF%E5%8A%A8%E7%A8%8B%E5%BA%8F

其实rc.local是可以的。检查一下是否赋予了可执行权限以及语法是否正确。另外查看一下开机日志看下是不是执行失败了。

Reply View the author
impressionyang
deepin
2021-10-27 17:31
#5
安洛

https://wiki.deepin.org/wiki/%E8%87%AA%E5%90%AF%E5%8A%A8%E7%A8%8B%E5%BA%8F

其实rc.local是可以的。检查一下是否赋予了可执行权限以及语法是否正确。另外查看一下开机日志看下是不是执行失败了。

我也认为是执行权限的问题,开机执行脚本确实需要有+x权限才能正常运行的

Reply View the author
garfieldtom
deepin
2021-10-27 17:57
#6

执行权限加了,我再排查一下,谢谢各位指教!

Reply View the author
派了个萌
deepin
2021-10-28 00:26
#7

开机执行我查到的是在/etc/profile.d里边,我测试是可以的

Reply View the author