I built and installed polkit-tqt and polkit-agent-tde. The polkit-agent-tde agent launches fine and can be seen in the process list.
Yet I am unable to launch pkexec. Just hangs. No issues with polkit-agent-kde.
Where to debug?
Thanks.
On 2025/04/03 07:56 AM, Darrell Anderson via tde-devels wrote:
I built and installed polkit-tqt and polkit-agent-tde. The polkit-agent-tde agent launches fine and can be seen in the process list.
Yet I am unable to launch pkexec. Just hangs. No issues with polkit-agent-kde.
Hi Darrell, pkexec is provided by the distribution, so you should focus on polkit config and related files (maybe missing dependencies or libraries?).
Yes, polkit-tqt is a prerequisite for polkit-agent-tde.
Cheers Michele
On 4/2/25 8:46 PM, Michele Calgaro via tde-devels wrote:
pkexec is provided by the distribution, so you should focus on polkit config and related files (maybe missing dependencies or libraries?).
Well pkexec is installed. Never had issues until updating from 14.1.2 to 14.1.3. I could revert a system or two to 14.1.2 and try to learn why pkexec worked fine there in TDE. My wild guess is the KDE polkit agent was running and I had no need to pay attention to that.
Yes, polkit-tqt is a prerequisite for polkit-agent-tde.
Okay, good. I have both building. Yet I can't get the packages to function. Is there some dependency I am unaware? I don't see anything in the wiki. I get the feeling I am not seeing something obvious, or perhaps the packages are designed with some Debian installation presumptions. I'm on a Slackware system. :)
I'm knee deep into creating my build environment. Determined like mad to get this all functional. Would be really nice if Slackware folks had a full build environment. So all help is appreciated. :)
Well pkexec is installed. Never had issues until updating from 14.1.2 to 14.1.3. I could revert a system or two to 14.1.2 and try to learn why pkexec worked fine there in TDE. My wild guess is the KDE polkit agent was running and I had no need to pay attention to that.
pkexec is expected to work without TDE, there is nothing TDE related there. Maybe it is as you said.
Yes, polkit-tqt is a prerequisite for polkit-agent-tde.
Okay, good. I have both building. Yet I can't get the packages to function. Is there some dependency I am unaware? I don't see anything in the wiki. I get the feeling I am not seeing something obvious, or perhaps the packages are designed with some Debian installation presumptions. I'm on a Slackware system. :)
No other pre requisite AFAIR. The packages are not designed for debian installation, they are general. You just need to make sure you build and install the various config files correctly based on your distro paths.
Cheers Michele
On 4/2/25 9:19 PM, Michele Calgaro via tde-devels wrote:
No other pre requisite AFAIR. The packages are not designed for debian installation, they are general. You just need to make sure you build and install the various config files correctly based on your distro paths.
I had one system still running 14.1.2. I found that the reason I never had a problem with pkexec in TDE 14.1.2 or previous is the gnome polkit agent was launching in the background.
To my understanding, any agent will suffice.
Now back to the original problem of why the TDE polkit agent is not functioning here. The agent autostarts fine, so something else is awry. My guess is how I am building the package. I presume other TDE users are not experiencing any such issue.
Darrell Anderson via tde-devels wrote:
Now back to the original problem of why the TDE polkit agent is not functioning here. The agent autostarts fine, so something else is awry. My guess is how I am building the package. I presume other TDE users are not experiencing any such issue.
if the gnome agent is starting before the tde agent, then the gnome one will pick up and handle all requests. Did you remove the gnome one and restarted the session?
On 4/3/25 5:38 PM, deloptes via tde-devels wrote:
Now back to the original problem of why the TDE polkit agent is not functioning here. The agent autostarts fine, so something else is awry. My guess is how I am building the package. I presume other TDE users are not experiencing any such issue.
if the gnome agent is starting before the tde agent, then the gnome one will pick up and handle all requests. Did you remove the gnome one and restarted the session?
The gnome agent was starting in 14.1.2 because the TDE polkit-tde package did not yet exist. In 14.1.3 the TDE agent launches but fails to function. When launched from a terminal window, pkexec hangs. When repeating with strace, there is a terminating error 'pkexec must be setuid root'. Searching the web did not help and as might be guessed, /usr/bin/pkexec is indeed setuid.
Not running the TDE polkit agent and letting either the KDE or GNOME agent launch on startup results in pkexec working as expected.
Darrell Anderson via tde-devels wrote:
The gnome agent was starting in 14.1.2 because the TDE polkit-tde package did not yet exist. In 14.1.3 the TDE agent launches but fails to function. When launched from a terminal window, pkexec hangs. When repeating with strace, there is a terminating error 'pkexec must be setuid root'. Searching the web did not help and as might be guessed, /usr/bin/pkexec is indeed setuid.
Not running the TDE polkit agent and letting either the KDE or GNOME agent launch on startup results in pkexec working as expected.
I have following installed
libpolkit-agent-1-0:amd64 122-3 libpolkit-gobject-1-0:amd64 122-3 libpolkit-tqt:amd64 4:14.1.2-0debian12.9+eko2 pkexec 122-3 policykit-1 122-3 polkit-agent-tde 4:14.1.2-0debian+eko2 polkitd 122-3 polkitd-pkla 122-3
and running
polkitd 1129 Mar20 0:17 /usr/lib/polkit-1/polkitd --no-debug user 3215 Mar20 0:08 polkit-agent-tde