AIR apps and HTTP proxies on Linux

With the alpha build of AIR on Linux, setting up an HTTP proxy for use by AIR applications requires exporting environment variables AIR_PROXY_SERVER and AIR_PROXY_PORT with appropriate values.
We intend to do away with this and use something that’s standard on Linux. The problem is that there is no standard. GNOME and KDE use different mechanisms. Individual applications use their own mechanisms.
We’ve decided to use the current desktop environment’s proxy settings, with the option of having these overridden with an environment variable.
On KDE, proxy settings can be set using kcontrol (KDE Control Center). On GNOME, these can be set using gnome-network-preferences (or directly using gconf-editor). The following gconf keys are involved:
a) /system/proxy/mode – A non-‘none’ value indicates that a proxy has been set (recommended value = “manual”)
b) /system/http_proxy/host
c) /system/http_proxy/port
Most browsers too use these values to figure out system proxy settings.
These settings can be overridden with an environment variable http_proxy (with its value in the format http://hostname:port). This variable is the most common one used by applications on Linux. apt-get and wget, for instance, use it.
I’m looking forward to’s shared configuration system as one standard, desktop-agnostic mechanism for managing such per-user configuration settings. (It’s currently in the planning/requirements-gathering stage.)

One Response to AIR apps and HTTP proxies on Linux

  1. mario niebla says:

    I have the latest version (as lof last week) of Adobe Air installed for Linux on RHEL 5.2.
    Is this blog entry still correct? Can I export the env variables you mentioned and have all AIR applications respect them?

    AIR_PROXY_SERVER and AIR_PROXY_PORT are no longer used. The rest of the information in the blog entry applies to the current version of AIR (1.5.1) – You can use gnome-network-preferences or the KDE control center to specify a proxy and those settings will be used by AIR. The environment variable http_proxy can also be used.
    – Ashutosh