https://bugs.kde.org/show_bug.cgi?id=451790

tn...@protonmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tn...@protonmail.com

--- Comment #2 from tn...@protonmail.com ---
I tried to trace where the user agent is determined. In kio source code in
kprotocolmanager.cpp, I see the user-agent can be configured by
~/.config/kio_httprc
I configured as so:
  $ cat ~/.config/kio_httprc
  SendUserAgent=true
  UserAgentKeys=:ovml

It does have effect on the kio user-agent. By running without a System Monitor
widget, the user-agent is according to the modifiers defined in the config
file.
    'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux '
                     '5.16.15-1-localmod-01004-gaedeba2797ad x86_64; English) '
                     'KIO/5.92 plasmawindowed/1.0',

The default UserAgentKeys is :om. A value of :ovml adds kernel version and
language of my system as seen above.

When there is a System Monitor widget in the taskbar, the user-agent becomes:
  'HTTP_USER_AGENT': 'Mozilla/5.0',

I put some print lines in the defaultUserAgent() function in kprotocolmanager.
When there's a System Monitor widget present the function is never called.
There must be some other code path the determines the user-agent. I haven't
been able find where that could be.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to