View previous topic :: View next topic |
Author |
Message |
mirekm Apprentice
Joined: 12 Feb 2004 Posts: 216 Location: Gliwice
|
Posted: Thu Sep 12, 2024 10:56 am Post subject: [Solved]Polkit agent in kde6 wont start |
|
|
Since upgrade of kde into version 6, I get a problem with polkit agent.
When it try to start it get an error, and stops. Thus I cannot suspend from kde, and so on.
Have no idea what is going on, maybe someone had similar problem?
Quote: |
New PolkitAgentListener 0x9586f569aa0
Adding new listener PolkitQt1::Agent::Listener(0x9586f569130) for 0x9586f569aa0
Listener online
"Cannot create unix session: No session for pid 5852"
** (process:5852): CRITICAL **: 19:51:29.465: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed
"Cannot register authentication agent!"
Authentication agent result: false
Couldn't register listener!
|
Last edited by mirekm on Thu Sep 12, 2024 8:54 pm; edited 1 time in total |
|
Back to top |
|
|
sinatosk n00b
Joined: 04 Sep 2024 Posts: 13
|
Posted: Thu Sep 12, 2024 2:16 pm Post subject: |
|
|
On Gentoo's KDE wiki ( they got it from KDE documentation ) when starting with no display manager ( this is how I work ), it mentions to start plasma with "dbus-run-session startplasma-wayland"
but I later found I was unable to use the command "pkexec" or edit any files ( using kate for example ) that didn't belong to me ( like root files ).
Polkit agency wasn't running. I later just "exec startplasma-wayland" and since then it's worked for me as polkit agency is there
I think when you login in, there is already a dbus session running and that's the session polkit agency is running in
doing "dbus-run-session startplasma-wayland" starts another dbus session but polkit agency doesn't start in that session for some reason |
|
Back to top |
|
|
rab0171610 Guru
Joined: 24 Dec 2022 Posts: 421
|
|
Back to top |
|
|
mirekm Apprentice
Joined: 12 Feb 2004 Posts: 216 Location: Gliwice
|
Posted: Thu Sep 12, 2024 8:53 pm Post subject: |
|
|
I found the root of the problem.
Until now for proc file system I used mount option hidepid=2,gid=polkitd.
This option hide all pids that don't belong to user. With gid=... it allowed polkitd to access all the pids in the system.
And it worked.
Because it don't work anymore, I had to disable this mount option, to get polkit-kde-agent. |
|
Back to top |
|
|
|