Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install new extensions. #348

Open
ForeverNooob opened this issue Jan 13, 2024 · 2 comments
Open

Unable to install new extensions. #348

ForeverNooob opened this issue Jan 13, 2024 · 2 comments

Comments

@ForeverNooob
Copy link

Hello,

I was recommended to create a new issue here after making a Reddit thread and asking in #flatpak:matrix.org

I'll go ahead and paste my thread here:

I can't seem to install new extensions for org.chromium.Chromium.
When trying to install an extension I get the error saying "Your organization blocked this file because it didn't meet a security policy."

I've tried flatpak permission-reset org.chromium.Chromium but that doesn't seem to do much.

Other stuff I tried after talking in the #flatpak:matrix.org room:

  • flatpak override --reset org.chromium.Chromium
  • Install dconf-cli and sudo dconf update, so that the unable to open file '/etc/dconf/db/site': Failed to open file “/etc/dconf/db/site”: open() failed: No such file or directory; expect degraded performance error was gone.
  • /var/lib/flatpak/extension/ and ~/.local/share/flatpak/extension/ don't even exist on my system.

My distro:

$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

These are my permissions for the Chromium Flatpak app:

$ flatpak info --show-permissions org.chromium.Chromium
[Context]
shared=network;ipc;
sockets=x11;wayland;pulseaudio;session-bus;cups;
devices=dri;
filesystems=!home;/run/.heim_org.h5l.kcm-socket;~/.config/chromium;~/Downloads/webdl;~/Downloads/tmp;

[Session Bus Policy]
org.freedesktop.Notifications=talk
org.kde.kwalletd5=talk
org.freedesktop.FileManager1=talk
org.mpris.MediaPlayer2.chromium.*=own
org.freedesktop.secrets=talk
org.freedesktop.ScreenSaver=talk
com.canonical.AppMenu.Registrar=talk
org.gnome.SessionManager=talk

[System Bus Policy]
org.freedesktop.Avahi=talk
org.freedesktop.UPower=talk

[Environment]
GTK_THEME=Adwaita:dark
LD_LIBRARY_PATH=/app/chromium/nonfree-codecs/lib
GTK_PATH=/app/lib/gtkmodules

What do you see in chrome://policy ?

{
   "chromeMetadata": {
      "OS": "Linux",
      "application": "Chromium",
      "revision": "204016af461e03117aa3858b51ba4534c7cfda81-refs/branch-heads/6099_110@{#3}",
      "version": "120.0.6099.129 (Official Build) (64-bit)"
   },
   "policyValues": {
      "chrome": {
         "name": "Chrome Policies",
         "policies": {
         }
      },
      "extensions": {
         "cjpalhdlnbpafiamejdnhcphjbkeiagm": {
            "forSigninScreen": false,
            "id": "cjpalhdlnbpafiamejdnhcphjbkeiagm",
            "name": "uBlock Origin",
            "policies": {
            }
         }
      },
      "precedence": {
         "name": "Policy Precedence",
         "policies": {
         },
         "precedenceOrder": [ "Platform machine", "Cloud machine", "Platform user", "Cloud user" ]
      }
   },
   "status": {
      "user": {
      }
   }
}

Which apparently equates to this: https://0x0.st/HlqN.png

Maybe these policy logs are relevant?

# Version Information
Chromium	120.0.6099.129
Revision	204016af461e03117aa3858b51ba4534c7cfda81-refs/branch-heads/6099_110@{#3}
OS	Linux 5.15.0-87-lowlatency

# Logs
[VERBOSE] Retrieving map of policy values
[VERBOSE] Client has user policies; getting precedence-related policies for Chrome
[VERBOSE] Retrieving map of policy values
[VERBOSE] user status: { }
[VERBOSE] Retrieving map of policy values
[VERBOSE] Client has user policies; getting precedence-related policies for Chrome
[VERBOSE] Retrieving map of policy values
[VERBOSE] user status: { }

Not sure how to interpret this, but none of my extensions seem to be visible here:

$ flatpak info --show-extensions org.chromium.Chromium

Chromium Web Browser - The web browser from Chromium project

          ID: org.chromium.Chromium
         Ref: app/org.chromium.Chromium/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: 120.0.6099.199
     License: BSD-3-Clause and LGPL-2.1+ and Apache-2.0 and IJG and MIT and GPL-2.0+ and ISC and OpenSSL and (MPL-1.1 or GPL-2.0 or LGPL-2.0)
      Origin: flathub
  Collection: org.flathub.Stable
Installation: user
   Installed: 367.5 MB
     Runtime: org.freedesktop.Platform/x86_64/22.08
         Sdk: org.freedesktop.Sdk/x86_64/22.08

      Commit: 49aed06ccb8dccc8d90e9e6e7144e48ba505c70eac8651e0734b6694dfcc9508
      Parent: 84c673a851e013ee8dca3ea09fbae4ea30785a02ddb02b0e7f93f23019888798
     Subject: Update chromium-120.0.6099.129.tar.xz to 120.0.6099.199 (fcc818fd)
        Date: 2024-01-06 08:12:39 +0000

   Extension: runtime/org.chromium.Chromium.Codecs/x86_64/stable
          ID: org.chromium.Chromium.Codecs
      Origin: flathub
      Commit: 324d5f1d3205f4e2a6c48220e02a99ae4e450a233151b8974cf5fcf77f6b27de
   Installed: 2.6 MB
@ToS0
Copy link

ToS0 commented Aug 18, 2024

Same with io.github.ungoogled_software.ungoogled_chromium Flatpak: no new extension can be installed, also when latest release of WebStore is installed (https://github.com/NeverDecaf/chromium-web-store/releases/tag/v1.5.4.3)

@ToS0
Copy link

ToS0 commented Aug 18, 2024

however, manual installation, even automatic install via the bookmarklet trick works just fine: https://ungoogled-software.github.io/ungoogled-chromium-wiki/faq#downloading-the-crx-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants