Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Polkit agent in kde6 wont start
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
mirekm
Apprentice
Apprentice


Joined: 12 Feb 2004
Posts: 216
Location: Gliwice

PostPosted: Thu Sep 12, 2024 10:56 am    Post subject: [Solved]Polkit agent in kde6 wont start Reply with quote

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
View user's profile Send private message
sinatosk
n00b
n00b


Joined: 04 Sep 2024
Posts: 13

PostPosted: Thu Sep 12, 2024 2:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 420

PostPosted: Thu Sep 12, 2024 2:30 pm    Post subject: Reply with quote

mirekm,
We recently had a post about this:
https://forums.gentoo.org/viewtopic-t-1170707-start-0-postdays-0-postorder-asc-highlight-polkit%2Bagent.html
Maybe look at that and the troubleshooting methods mentioned to see where your issue might lie. It may or may not help but I thought it worth mentioning. The troubleshooting steps might be helpful to you in isolating your issue. First, make sure you ran dispatch-conf or etc-update recently to eliminate stale config files as the cause.
Back to top
View user's profile Send private message
mirekm
Apprentice
Apprentice


Joined: 12 Feb 2004
Posts: 216
Location: Gliwice

PostPosted: Thu Sep 12, 2024 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum