centos7开机自动启动firefox并打开指定网站

1、配置firefox开机自启动

1 cp /usr/share/applications/firefox.desktop ~/.config/autostart/

 


注意:如果没有~/.config/autostart目录,需手工建立

1 mkdir ~/.config/autostart

 


2、授权

chmod +x ~/.config/autostart/firefox.desktop

 


3、firefox默认页面配置
需修改firefox.desktop文件内容,将firefox %u 改为firefox,否则会试图打开http://%u.com的网站地址

1 vim /usr/share/applications/firefox.desktop

 


按esc然后:%u找到那一行然后删掉%u

然后保存退出

4、进firefox浏览器的配置工具框,把homepage改成指定网页

posted @ 2022-12-08 21:21  郑道杰  阅读(739)  评论(0编辑  收藏  举报