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

open-uri: application URI handlers #1313

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Apr 29, 2024

  1. open-uri: Basic globbing for detailed URI handlers

    Pre-empt the default URI scheme handlers, so that applications may
    specify scheme, host, port and path patterns.
    
    URIs are checked incrementally by part.
    andyholmes committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    e89e000 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2024

  1. Configuration menu
    Copy the full SHA
    2161568 View commit details
    Browse the repository at this point in the history
  2. open-uri: prevent application rentrancy with URI handlers

    When matching URI handlers, prevent sending a link back to the source
    application. This allows an application to define broad patterns and
    reject unwanted URIs by explicitly calling `OpenUri()`.
    andyholmes committed May 2, 2024
    Configuration menu
    Copy the full SHA
    65a95c9 View commit details
    Browse the repository at this point in the history
  3. open-uri: add temporary keyfile deserialization

    This adds support for deserializing URI handlers from `.desktop`
    overrides in the user data directory, with the format:
    
    ```ini
    [URI Handler example.com]
    Scheme=https;
    Host=example.com;*.example.com;
    Port=443;
    Path=/resource/*
    ```
    andyholmes committed May 2, 2024
    Configuration menu
    Copy the full SHA
    fe0ee65 View commit details
    Browse the repository at this point in the history
  4. open-uri: basic support for proposed intent Implements

    Add support for reading URI handlers from a proposed addendum to
    the intents-spec in the form:
    
    ```ini
    [Implements org.freedesktop.UriHandler]
    Patterns=*.openstreetmap/node/*;*.openstreetmap/way/*;
    ```
    andyholmes committed May 2, 2024
    Configuration menu
    Copy the full SHA
    11c6af7 View commit details
    Browse the repository at this point in the history