You are not logged in.

#1 2025-08-09 17:50:40

haigioli
Member
Registered: 2018-09-06
Posts: 142

PAC files not working on Plasma 6

I have a fully functioning .pac file that I've been trying to get working on Plasma 6 system-wide (with the exception of Firefox and the like, upon which this very pac-file works beautifully).  On Plasma 6, however, it simply doesn't work.  I can set manual settings and it'll work on whatever Plasma proxy settings will allow, but the pac file does nothing.

I have set the mime-type for .pac files correctly (application/x-ns-proxy-autoconfig).

I'm at a loss, however, I'm also open to alternative methods, if there are any.

My current .pac file does this:

~/someDir/some_proxySetting.pac

function FindProxyForURL(url, host) {
    if (dnsDomainIs(host, "someurl.com"))
        # Determine current IP address and if it's in a certain address block, assign a proxy server;
        # otherwise, go direct.
        if (isInNet(myIpAddress(), "192.168.0.0", "255.255.255.0"))
            return "PROXY 192.168.0.220:8118";
        return "DIRECT";
    return "DIRECT";
}

The above works perfectly on Firefox, and other programs.  It does not seem to work at all in nm-connection-editor or nmcli.  I'm not familiar with which logs to view for debugging.

EDIT:

I've noticed in the journals that when I switch an app to system proxy, as defined by proxy autoconfig pac file in the Proxy app, the error i get immediately is:

kf.wallet.kwalletd: "Entry not found, key: proxy-password, folder: appInQuestion"

I don't even know if this is relevant.

Last edited by haigioli (2025-08-09 18:11:06)

Offline

#2 2025-08-10 12:13:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,962

Re: PAC files not working on Plasma 6

What are you using to manage your network ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2025-08-11 11:38:24

haigioli
Member
Registered: 2018-09-06
Posts: 142

Re: PAC files not working on Plasma 6

I'm using NetworkManager.  As I mentioned in the original post, I've tried using nm-connection-editor to add a proxy, as well as nmcli to bind a proxy to a particular connection profile, as well.  Still no luck.

Offline

#4 2025-08-12 11:50:05

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,962

Re: PAC files not working on Plasma 6

nm-settings-nmcli appears to have support for proxy autoconfig , check its manpage .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB