当前位置:   article > 正文

Ubuntu安装Brave浏览器

ubuntu安装brave
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
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

注: 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
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/260745
推荐阅读
相关标签
  

闽ICP备14008679号