ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
20.66k stars 836 forks source link

Path for policies for flatpak #2939

Closed shellheim closed 3 months ago

shellheim commented 3 months ago

OS/Platform

Fedora and CentOS

Installed

Flatpak

Version

126.0.6478.126

Have you tested that this is not an upstream issue or an issue with your configuration?

Description

The poljcies path of /etc/chromium/policies/managed/ doesn't work for flatpak.

How to Reproduce?

  1. Go to /etc/chromium/policies/managed/ and make file called policies.json
  2. Add any policy you want in that file
  3. Go to chrome://policy/ in the browser and see the value of the policy doesn't change.

Actual behaviour

The value of the policy in /etc/chromium/policies/managed/policies.json doesn't change.

Expected behaviour

The value of the policy in /etc/chromium/policies/managed/policies.json changes as specified in the json file.

Relevant log output

No response

Additional context

No response

shellheim commented 3 months ago

Does anyone know where the policy path for the flatpak version is?

rany2 commented 3 months ago

Example policy on flatpak: https://github.com/ungoogled-software/ungoogled-chromium-flatpak/tree/master/examples/policies/block-dinosaur-game

shellheim commented 3 months ago

Okay, I have no idea what that is nor does giving the flatpak permission to access /etc/chromium/policies/managed/policies.json work. But I'm gonna close the issue anyway because there's definitely a way but I am too dumb to get it.

rany2 commented 3 months ago

You just build and install using flatpak-builder as you would with any flatpak.

shellheim commented 3 months ago

oh jesus christ why can't we just flick a switch like firefox. Thanks for the help man