当前位置:网站首页>【银河麒麟V10】【桌面】火狐浏览器设置主页不生效
【银河麒麟V10】【桌面】火狐浏览器设置主页不生效
2022-06-30 01:59:00 【桂安俊@kylinOS】
1、问题描述
火狐浏览器设置主页的方式是在设置的“首选项”--->“常规”--->“主页”,如下图:
将主页改成指定的网站,比如https://www.baidu.com,重启后不生效。
2、问题分析
检查火狐主页设置读取的配置文件,可在浏览器搜索框输入about:config
在搜索框搜索browser.startup.homepage,如下图可以看到,该值在浏览器重启后又恢复成了默认值,默认值读取的是本地/usr/share/doc/HTML/index.html的文件,为火狐浏览器的主页设置bug。
3、解决方式
方法1:更改默认主页文件index.html
如上分析可以看到,设置主页其实就是更改browser.startup.homepage值得读取内容,可以将/usr/share/doc/HTML/index.html替换为需要设置的首页网址的html文件(html文件ctrl+s就可以下载到本地),注意名称要改成index.html。
方法2:直接更改火狐浏览器的js配置文件
打开终端,输入如下命令:
#使用pluma文本编辑器打开配置文件,方便不会使用vim命令的普通用户操作
sudo pluma /usr/lib/firefox/browser/defaults/preferences/syspref.js
如下图,将usr_pref值更改为想要设置的主页的http地址即可,以设置百度为主页为例:
更改前:
更改后:
保存退出,直接关闭文本编辑器即可
重启火狐浏览器生效,如下图:
方法3:直接设置浏览器快捷方式
操作方法可以参考链接:
边栏推荐
猜你喜欢
Understand AQS principle (flow chart and synchronous queue diagram)
Cookie encryption 15 login encryption
Cookie encryption 13
C language I want to pass
[MySQL 04] use MySQL workbench 8.0 CE to back up and restore MySQL databases in Linux
Cookie encryption 9
DMX的配置
C语言 我要通过
DTW learning (dynamic time warping) -- Thought and code implementation
012_ switch
随机推荐
【图神经网络】图分类学习研究综述[3]:图分类方法评价及未来研究方向
scp远程拷贝命令记录
Implementation of a simple camera based on pyqt5
C语言 一元多项式求导
一次 Keepalived 高可用的事故,让我重学了一遍它!
9 — 正则校验集合
CheapSwap 协议的诞生
搞透AQS原理(流程圖及同步隊列圖解)
Looking for thesaurus data [closed]
Varnish foundation overview 1
005_ button
【图神经网络】图分类学习研究综述[2]:基于图神经网络的图分类
Thinking carefully and fearfully: a software can be transmitted online to monitor whether employees want to "run away"
208. implement trie (prefix tree) - attach detailed notes
Who can use redis expired monitoring to close orders and get out of here!
C语言 素数对猜想
Is the processor the main factor in buying a mobile phone?
[pytorch actual combat] generate confrontation network Gan: generate cartoon character avatars
Electron FAQ 54 - make your own fireworks based on electron
记录生产的一次OOM异常