当前位置: 首页 > 工具软件 > Brave Desktop > 使用案例 >

Ubuntu安装Brave浏览器

郭通
2023-12-01
sudo curl -x "http://127.0.0.1:8889" -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg

echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main" | sudo tee /etc/apt/sources.list.d/brave-browser-release.list

sudo apt -o=acquire::http::proxy="http://127.0.0.1:8889" update

sudo apt -o=acquire::http::proxy="http://127.0.0.1:8889" install brave-browser

注: curl -x "..."apt -o=acquire::http::proxy="..." 作用相同

sudo vim /etc/apt/sources.list.d/brave-browser-release.list 注释掉这一行, 避免平时apt update不通

其他

brave/chrome本质是GTK

而GTK的 file chooser dialog 实在是惨不忍睹……

遂改用 KDE

  1. apt install xdg-desktop-portal xdg-desktop-portal-kde
  2. vim /usr/share/xdg-desktop-portal/portals/kde.portal
    UseIn=KDE;$XDG_CURRENT_DESKTOP (例如在LinuxMint上: UseIn=KDE;X-Cinnamon)
  3. vim /etc/environment
    export GTK_USE_PORTAL=1
  4. vim ~/pam_environment
    GTK_USE_PORTAL=1
 类似资料: