当前位置:网站首页>【银河麒麟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:直接设置浏览器快捷方式
操作方法可以参考链接:
边栏推荐
- Pytorch模型训练到哪里找预训练模型?
- js Array. Five convenient applications of from()
- Pytorch中transforms的用法整理
- [machine learning Q & A] cosine similarity, cosine distance, Euclidean distance and the meaning of distance in machine learning
- A keepalived high availability accident made me learn it again!
- Conversion between opencv and image (valid for pro test)
- The (3n+1) conjecture that C language kills people without paying for their lives
- Cookie encryption 15 login encryption
- 搞透AQS原理(流程圖及同步隊列圖解)
- GeoTools WKT坐标系转换
猜你喜欢

C语言 素数对猜想
![[pytorch actual combat] generate confrontation network Gan: generate cartoon character avatars](/img/8f/c0cc1c8d19060a60d92c0d72f8b93d.png)
[pytorch actual combat] generate confrontation network Gan: generate cartoon character avatars

005_ button

【MySQL 04】使用MySQL Workbench 8.0 CE 備份及恢複Linux中的MySQL數據庫

Cookie encryption 9

C语言 数组元素循环右移问题

想转行,但不知道自己要做什么工作比较好?

搞透AQS原理(流程圖及同步隊列圖解)

图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?

Understand AQS principle (flow chart and synchronous queue diagram)
随机推荐
A summary of the quantification of deep network model
记录生产的一次OOM异常
工具与生活服务
Application features and functions of painting Aquarium
Thinking carefully and fearfully: a software can be transmitted online to monitor whether employees want to "run away"
Three questions from the boss
[machine learning Q & A] data sampling and model verification methods, hyperparametric optimization, over fitting and under fitting problems
Scala basics [introduction and installation]
Que se passe - t - il si un faux divorce devient un vrai divorce?
Pytorch模型训练到哪里找预训练模型?
搞透AQS原理(流程图及同步队列图解)
Cookie encryption 15 login encryption
Let‘sPlayCurling
Cookie encryption 10
Write this number in C
Add a second network card (network interface NIC) for the virtual machine in azure portal in 2 minutes
Let‘sPlayCurling
What are the payment and distribution systems?
Cookie encryption 12
模块导入reload方法