You are not logged in.

#1 2023-02-26 04:49:07

scatherinch
Member
Registered: 2023-02-24
Posts: 168

[SOLVED] GUI: PolKit Errors - lxpokit

Hey, would you guys mind helping me?

I'm getting authentication errors while trying to perform some basic tasks in some GUI programs (Dolphin, Grub-customizer, Partition Manager, etc). I'm running awesome window manager and building my desktop from scratch, but this problem has eluded me thus far. Normally on a full-fledged desktop environment like KDE, a pop-up will appear for tasks that require elevation like this, but I've seen no such luck with mine. To my knowledge, or from what I've read at least, this problem is related to a polkit agent, which, while I have, I'm not certain how to make it active to where that prompt will appear when I'm doing things. Without it, I get this message (which I've included in the attached imgu)

Error Message: https://imgur.com/a/o6ENeik

I've tried reading the wiki and putting " lxpolkit & " into my xinitrc but that box just won't appear and I keep getting that error.

Here are some topics I tried following to troubleshoot:  https://bbs.archlinux.org/viewtopic.php?id=255976   ,    https://www.reddit.com/r/archlinux/comm … on_popups/  ,  https://bbs.archlinux.org/viewtopic.php?id=264245


What could I be doing wrong?

Last edited by scatherinch (2023-03-01 05:11:39)

Offline

#2 2023-02-26 05:33:59

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134
Website

Re: [SOLVED] GUI: PolKit Errors - lxpokit

First, be sure that "lxpolkit &" starts before your wm or whatever you're using, like this:

...
apps
...
lxpolkit &
...
exec yourwindowmanager

The wiki shows a command to check if the polkit agent is started.
In your case I think is:

pgrep -af lxpolkit

And if the polkit agent is started, post the output of

systemctl status polkit.service

to see what's happening.


I'm just someone. Please use [code] [/code] tags.

Offline

#3 2023-02-26 07:15:45

scatherinch
Member
Registered: 2023-02-24
Posts: 168

Re: [SOLVED] GUI: PolKit Errors - lxpokit

Alright, here's my .xinitrc file:

lxpolkit &
exec awesome

I put those commands in as well, like you told me:

entering

systemctl status polkit.service

comes up with...

[1]> systemctl status polkit.service
● polkit.service - Authorization Manager
     Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
     Active: active (running) since Sun 2023-02-26 02:09:53 EST; 1min 12s ago
       Docs: man:polkit(8)
   Main PID: 930 (polkitd)
      Tasks: 3 (limit: 38408)
     Memory: 3.4M
        CPU: 22ms
     CGroup: /system.slice/polkit.service
             └─930 /usr/lib/polkit-1/polkitd --no-debug

Still no box prompt, unfortunately...

Offline

#4 2023-02-26 08:15:09

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134
Website

Re: [SOLVED] GUI: PolKit Errors - lxpokit

Alright, here's my .xinitrc file:

It's the tail of your xinitrc, right? Or only have those 2 lines?

systemctl status polkit.service doesn't have log? I mean, after of that output, there's a lines from the journal log.
I think is better to post the journal log itself.

Try to run something that needs elevated privileges. For example:

systemctl restart testing.service

And see if the box appears.
If you see that you need to enter the password in the terminal, it's the polkit agent fallback calls pkttyagent, so the lxpolkit didn't start.

I don't think we need all the journal log (for now), so just post the output of:

journalctl -u polkit.service

Last edited by Adriik (2023-02-26 08:16:15)


I'm just someone. Please use [code] [/code] tags.

Offline

#5 2023-02-28 02:29:59

scatherinch
Member
Registered: 2023-02-24
Posts: 168

Re: [SOLVED] GUI: PolKit Errors - lxpokit

Hey, I figured it out.

As it turns out, the name of the program was wrong in my .xinitrc.

Following from the Arch Wiki, it has some misleading information on polkit agets: https://wiki.archlinux.org/title/Polkit … ion_agents

the command is not called lxpolkit, as it turns out, but lxsession

Replacing that into my .xinitrc instead of lxpolkit has fixed it.

So, maybe the wiki has some unclear information or I must have missed something.

Anyways, the box is spawning!

However, now I have a new problem, which I'll just make a new topic for.

Thanks for your assitance!

Offline

#6 2023-02-28 02:55:47

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 134
Website

Re: [SOLVED] GUI: PolKit Errors - lxpokit

Weird, I test with lxpolkit and it works.

Look:
KixgSv.th.png

I don't know what to say.


I'm just someone. Please use [code] [/code] tags.

Offline

#7 2023-03-01 05:13:22

scatherinch
Member
Registered: 2023-02-24
Posts: 168

Re: [SOLVED] GUI: PolKit Errors - lxpokit

I don't know, it is odd.

If I find out anything, I will share it here.

Anyways, thank you for replying, your insight was helpful!

Offline

Board footer

Powered by FluxBB