当前位置:网站首页>【银河麒麟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:直接设置浏览器快捷方式
操作方法可以参考链接:
边栏推荐
- MySQL monitoring
- 【MySQL 04】使用MySQL Workbench 8.0 CE 備份及恢複Linux中的MySQL數據庫
- 207. curriculum - graph theory, depth traversal
- MySQL monitoring 5
- Where can I find a pre training model for pytoch model training?
- 图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?
- C语言 换个格式输出整数
- [machine learning Q & A] data sampling and model verification methods, hyperparametric optimization, over fitting and under fitting problems
- 012_ switch
- What are the payment and distribution systems?
猜你喜欢

C语言 写出这个数

Write this number in C

C语言 成绩排名
![[machine learning Q & A] data sampling and model verification methods, hyperparametric optimization, over fitting and under fitting problems](/img/ec/de75eb8279604a57ef7d90406ad7c7.png)
[machine learning Q & A] data sampling and model verification methods, hyperparametric optimization, over fitting and under fitting problems
![[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

JS content confusion, return content encryption

Spark 离线开发框架设计与实现

018_ rate

012_ switch

Add a second network card (network interface NIC) for the virtual machine in azure portal in 2 minutes
随机推荐
Sorting out the usage of transforms in pytoch
什么是幂等性?四种接口幂等性方案详解!
Mobaihe cm201-2-ch-hi3798mv300-300h-emmc and NAND_ Infrared Bluetooth voice_ Brush firmware package
GeoTools:WKT、GeoJson、Feature、FeatureCollection相互转换常用工具
Implementation of a simple camera based on pyqt5
Let‘sPlayCurling
【图神经网络】图分类学习研究综述[2]:基于图神经网络的图分类
SCP remote copy command record
Three questions from the boss
[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions
js Array.from()的5个便捷应用
【PyTorch实战】生成对抗网络GAN:生成动漫人物头像
Pytorch模型训练到哪里找预训练模型?
Leetcode 46 Full arrangement (February 15, 2022)
魔百盒CM201-2-CH-Hi3798MV300-300H-EMMC和NAND_红外蓝牙语音_通刷固件包
(1) Basic learning - figure out the difference between pin, pad, port, IO and net
Method of converting songs from DTS to MP3
Comprendre le principe AQS (organigramme et schéma de file d'attente synchrone)
001_ layout
What is idempotency? Detailed explanation of four interface idempotence schemes!