Skip to content

browse: Linux desktop sessions (GNOME/KDE) may lose a system PAC proxy under --proxy-server=direct:// #3450

Open

Description

@capy-ai

Follow-up from #3448 (#3440 item 8), raised by the ship red team and unverified.

#3448 makes every direct connection on Linux explicit with --proxy-server=direct://, because Chromium launched without a proxy switch reads HTTPS_PROXY/HTTP_PROXY/ALL_PROXY itself there. Chromium's ProxyConfigServiceLinux reads those variables only outside a desktop session: when XDG_CURRENT_DESKTOP is in the GNOME (Cinnamon, Unity, Pantheon) or KDE families it reads the desktop's system proxy settings (gsettings / kioslaverc, PAC and WPAD included) and does not fall back to the environment. If that is right, a GStack Browser user on a corporate Linux desktop with a system PAC now gets the switch forced and loses connectivity, the regression #3448 avoided on macOS and Windows by gating the switch to an explicit BROWSE_PROXY_URL=direct there, and the daemon log line names variables Chromium would not have consulted.

The measurement behind #3448 was taken in a no-desktop (Xvfb) session, where the environment-variable path is the one Chromium uses.

To settle it:

  1. In a GNOME session, set a manual or PAC proxy in gsettings with no HTTPS_PROXY, run $B goto against a logging CONNECT proxy on main before and after v1.91.248.0 fix(browse): direct mode launches Chromium with --proxy-server=direct:// so proxy env vars never win silently (#3440 item 8) #3448, and record whether the CONNECT arrives.
  2. If confirmed, either gate Linux like macOS when a desktop proxy service would be used (XDG_CURRENT_DESKTOP in the GNOME/KDE families, or gsettings get org.gnome.system.proxy mode not none), reusing explicitDirect() so the opt-out joins the config hash there too, or document in BROWSER.md "Proxy from environment" that Linux desktop system proxy settings are bypassed and the proxy must be named through BROWSE_PROXY_URL.

Decision owner: GStack Minder (2026-10-26) asked for this to be filed rather than guessed at in #3448.

Activity

  1. added a commit that references this issue on Oct 26, 2026
  2. added
    S3
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions