[Share Experiences] 求教,如何图形化应用设置开机启动
Tofloor
poster avatar
185******10
deepin
2023-03-29 09:04
Author

我的需求是,系统安装了RustDesk这个应用,怎么样设置可以确保电脑断电重启后,在未登录的情况下即可启动RustDesk,这样的话只要电脑bios设置了通电自启动,那么自己就可以随时随地远程连接家中的主机了,试过了rc.local,设置为系统服务貌似都不行,有没有好的解决方案

Reply Favorite View the author
All Replies
jjcui8595
deepin
2023-03-29 14:11
#1

将.desktop文件放到 xxxx(用户名)/.config/autostart下

Reply View the author
安洛
deepin
2023-03-29 15:50
#2

楼上的方法必须登陆后才能自启动

这种情况可能需要写systemd service,并在service文件中的[Unit]段添加After=lightdm.service来确保它在图形界面之后启动。

Reply View the author
185******10
deepin
2023-03-30 18:20
#3
安洛

楼上的方法必须登陆后才能自启动

这种情况可能需要写systemd service,并在service文件中的[Unit]段添加After=lightdm.service来确保它在图形界面之后启动。

试过了,提示 can‘t open display:,根本启动不起来,哎

Reply View the author
安洛
deepin
2023-03-30 22:59
#4
185******10

试过了,提示 can‘t open display:,根本启动不起来,哎

看起来rustdesk必须登陆后才能使用。也可以试试放xprofile。或者就开自动登陆,然后登陆后自动运行一个锁屏脚本?或者干脆换个软件算了。

Reply View the author
185******10
deepin
2023-04-01 02:22
#5
安洛

看起来rustdesk必须登陆后才能使用。也可以试试放xprofile。或者就开自动登陆,然后登陆后自动运行一个锁屏脚本?或者干脆换个软件算了。

这个法子可以,非常感谢

Reply View the author