Skip to content

Proxy variables incorrectly set when the gnome settings proxy host key contains protocols #2257

@Paionir

Description

@Paionir

Problem

If the gnome settings key org.gnome.system.proxy.host contains the protocol part of the URL (i.e., http://proxyhost), tilix will export the environment variables http_proxy and http_proxys with a duplicated protocol section (e.g., http_proxy=http://http://proxyhost)

To correct the behavior, a check should be inserted into the setProxyEnv function in source/gx/tilix/terminal/terminal.d to avoid adding the protocol section if already present.

Current behavior:

foo@bar:~$ gsettings get org.gnome.system.proxy.http host

'http://proxyhost'

foo@bar:~$ printenv http_proxy

http://http://proxyhost

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions