Code Monkey home page Code Monkey logo

org.chromium.chromium's Introduction

Chromium Flatpak

Extension points

To avoid having to expose more of the host filesystem in the sandbox but still allowing extending Chromium, the org.chromium.Chromium.Extension extension point is defined.

This extension point is currently on version '1' and will expose any extension manifests under the extensions subdirectory, policy files under policies/managed and policies/recommended, and native messaging host manifests under native-messaging-hosts.

Legacy extension points

This application also supports two other extension points: org.chromium.Chromium.Policy and org.chromium.Chromium.NativeMessagingHost. These primarily exist for compatibility reasons and should not be used.

Using extension points

Extension points can be provided as regular flatpaks and an example is provided under examples/policies/google-safe-search. Important to note that extension points' name must follow the syntax of Extension.<id>, where <id> is a generic id for this specific extension point.

Flatpak also supports “unmanaged extensions”, allowing loading extensions installed into /var/lib/flatpak/extension and $XDG_DATA_HOME/flatpak/extension. This can be useful for example to allow system administrators to expose system installed policies, extensions, etc.

One example of such "unmanaged extension" could be an extension point that exposes all system policies installed under /etc/chromium-browser/policies/{managed,recommended}. This could be done for example by creating an extension point under /var/lib/flatpak/extension/org.chromium.Chromium.Extension.system-policies, with /var/lib/flatpak/extension/org.chromium.Chromium.Extension.system-policies/<arch>/<version> being a symlink to /etc/chromium-browser. Note that <version> must match the extension point version.

Also important to note that in the example above one would not be able to symlink the actual policy file directly, as otherwise flatpak would not be able to resolve the symlink when bind mounting the extension point.

Building and updating

CroFT is used to manage the patches in this repository and work with a build environment.

Build arguments to pass to gn

# Not required but makes builds faster.
use_lld = true
# NaCL hasn't been tested and is being removed from Linux builds.
enable_nacl = false
# Unrelated to Flatpak but helps speed up builds.
blink_symbol_level = 0
# Outdated
use_gnome_keyring = false
# Not supported
use_sysroot = false

org.chromium.chromium's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.