Leif160519的blog Leif160519的blog

——————

目录
Linux设置Chrome开机自启动
/    

Linux设置Chrome开机自启动

方法一

cd .config 
mkdir autostart
cd autostart/
touch my.desktop 

my.desktop 文件内容如下:

[Desktop Entry]
Type=Application
Exec=chromium-browser  --incognito --disable-session-crashed-bubble --disable-popup-blocking --no-first-run --disable-desktop-notifications  --kiosk "http://www.example.com"

重启系统生效

参数解释:
--incognito --disable-session-crashed-bubble : 去除因浏览器异常关闭右上角出现的恢复界面
http://www.example.com:你自己所需要替换的网页地址

方法二

my.desktop文件放到 /usr/share/xsessions中,并且删除其余desktop文件(建议备份)重启即可生效

方法三

/etc/profile中第一句加上上述命令也可以启动

注意:上述方式都会在桌面加载之前执行


“The first 90% of the code accounts for the first 90% of the development time. The remaining 10% of the code accounts for the other 90% of the development time.” – Tom Cargill

标  题Linux设置Chrome开机自启动
作  者Leif160519
出  处https://github.icu/articles/2019/08/27/1566884772145.html
关于博主:坐标南京,运维工程师,如有问题探讨可以直接下方留言。
声援博主:如果您觉得文章对您有帮助,可以评论、订阅、收藏。您的鼓励是博主的最大动力!