当前位置:网站首页>【银河麒麟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:直接设置浏览器快捷方式
操作方法可以参考链接:
边栏推荐
- Method of converting songs from DTS to MP3
- SCP remote copy command record
- AI落地制造业:智能机器人应具备这4种能力
- Cookie encryption 12
- JS reverse request parameter encryption:
- Application features and functions of painting Aquarium
- Cookie encryption 11
- 【MySQL 04】使用MySQL Workbench 8.0 CE 備份及恢複Linux中的MySQL數據庫
- Pytorch 修改hook源码 获取Per-Layer输出参数(带layer name)
- C语言 换个格式输出整数
猜你喜欢

【机器学习Q&A】数据抽样和模型验证方法、超参数调优以及过拟合和欠拟合问题

C语言 一元多项式求导
![[MySQL 04] use MySQL workbench 8.0 CE to back up and restore MySQL databases in Linux](/img/e7/fc2925a10ac5fb370dd221c3f4a46a.png)
[MySQL 04] use MySQL workbench 8.0 CE to back up and restore MySQL databases in Linux

C语言 我要通过

C language continues (3n+1) conjecture

Design and implementation of spark offline development framework

Embedded test template

Implementation of a simple camera based on pyqt5

C语言 写出这个数

图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?
随机推荐
Scala基础【入门及安装】
Oppo mobile phone search
9 — 正则校验集合
[mrctf2020]ezpop-1 | PHP serialization
DTW学习(dynamic time warping)——思想、代码实现
Cookie encryption 8
Summary of DOM
Chiffrement des cookies 8
C语言 数素数
003_ color
图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?
【PyTorch实战】生成对抗网络GAN:生成动漫人物头像
记录生产的一次OOM异常
Who can use redis expired monitoring to close orders and get out of here!
Fake divorce turns into real divorce. What about property
Three questions from the boss
Varnish foundation overview 7
The national industrial information security development research center issued the report on industrial information security situation in 2021
MySQL monitoring 1
【图神经网络】图分类学习研究综述[3]:图分类方法评价及未来研究方向