qt6-base has a bug which was causing only the first use of polkit-kde-agent to work.
Looking deeper I found this:
And this was thankfully one of those too rare occasions where searching the error took me straight to the answer (https://bugs.kde.org/show_bug.cgi?id=485407).
As the bug report suggests using the git tag v6.7.0-beta3 and building qt6-base locally solves the issue.
If anyone needs more detail on how to do that let me know and I'll add it.
Hello.
Please add more detail how to do that.
Thank you.
git clone https://gitea.artixlinux.org/packages/qt6-base.git
cd qt6-base
In the PKGBUILD change line 83 to:
source=(git+https://code.qt.io/qt/$_pkgfn#tag=v$pkgver-beta3
Change line 87 to
sha256sums=('b9200a629a12917b33748a6cb25880e9429e294b03623011201a7195a888f36f'
or
sha256sums=('SKIP'
To build and install (add r to the options if you don't want to keep any 'makedepends' installed):
makepkg -si
thanks
And you can also use /usr/lib/kf6/kdesu to authenticate
The good new is that the bug report has been noticed by Nate Graham so I'm slightly more confident it will get fixed before QT jumps another version and using the beta3 branch ceases to be useful