This is mainly a rant post.

I have to use Zscaler on my work PC. I use Sway (Moved from Gnome -> i3 -> sway).

Whenever Zscaler is launched, I used to get a weird error “proxy server not found” but it continued to work otherwise. Now at my company, we used a proxy at one time but we shifted to a no-proxy connection recently.

So I checked all my environment variables, output of set command. Everything was fine. People said it could be because of some weird compliance issue, or kernel etc etc. After a week or so, I gave up on debugging it because most of my work was fine with the 50% functional Zscaler.

One day, I opened Gnome instead of Sway to check something else, and saw that my proxy was on. This is the proxy set in Gnome Settings, not environment file.

I initially dismissed this finding because I thought Gnome is not active during sway so it should not affect it. But then i remembered it’s possible to access the gnome settings using gsettings from any distro.

I switched to Sway, and sure enough, when I ran gsettings get org.gnome.system.proxy.http host, I could see the proxy IP. I set it to null and behold! Zscaler was working perfectly.

I’m like “Who the hell designs software like this? The application should read the environment variables, not Gnome variables!”

Anyway, this was just a reminder to software makers to kindly follow the norms. Don’t design your software for one Distro. Follow the guidelines as mentioned in freedesktop.

  • mina86@lemmy.wtf
    link
    fedilink
    English
    arrow-up
    13
    ·
    18 hours ago

    This is not a legitimate issue. It’s like complaining that wget reads proxy settings from /etc/wgetrc. It’s absolutely proper for programs to read system- or user-level configuration if the configuration is not specified via environment variables or command line options.

    The typical setting hierarchy goes something like:

    • command line options,
    • environment variables,
    • user-level configuration files and finally
    • system-level configuration files.
    • Aceivan [they/them]@hexbear.net
      link
      fedilink
      English
      arrow-up
      5
      ·
      17 hours ago

      ehhhhhh no its a genuine issue to honor gnome settings when gnome isn’t running IMO. That isn’t the correct system/user configuration to load if you’re running under sway…