UOS中Chrome浏览器去除默认浏览器提示

Published on with 0 views and 0 comments

在UOS中设置了默认浏览器之后,打开Chrome仍然存在“"设置Chrome为默认浏览器”的提示。

Chome浏览器必须是从软件商店中下载的版本,与官方的安装包安装位置不一样,不通用。

命令内容如下,

#! /bin/bash
sudo sed -i 's|Exec=/opt/apps/cn.google.chrome-pre/files/google/chrome/google-chrome %U %U|Exec=//opt/apps/cn.google.chrome-pre/files/google/chrome/google-chrome %U -no-default-browser-check|g' /opt/apps/cn.google.chrome-pre/entries/applications/google-chrome.desktop
# 使用sed命令,将google-chrome.desktop中添加-no-default-browser-check启动参数

标题:UOS中Chrome浏览器去除默认浏览器提示
作者:MeGusta
地址:https://www.oakdb.cn/articles/2024/01/14/1705231173001.html