arcolinux / archlinux-tweak-tool

GNU General Public License v3.0
140 stars 17 forks source link

polkit-agent-helper-1: error response to PolicyKit daemon #16

Closed AndreasBrostrom closed 11 months ago

AndreasBrostrom commented 11 months ago

Been trying to get this to work now but failed. I receve a error on startup: polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie.

This is on a fresly installed arch.

Full output:

$ archlinux-tweak-tool
---------------------------------------------------------------------------
[INFO] Checking session
[INFO] Display = :0
[INFO] Session = x11
[INFO] Xauth session = OK
---------------------------------------------------------------------------
[INFO] Starting ArchLinux Tweak Tool
==== AUTHENTICATING FOR org.arcolinux.pkexec.archlinux-tweak-tool ====
Authentication is required to change your own user data
Authenticating as: andre
Password: 
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

This incident has been reported.
$ ps aux | grep polkit
polkitd     1620  0.0  0.0 387020 11740 ?        Ssl  14:14   0:00 /usr/lib/polkit-1/polkitd --no-debug
andre      18683  0.0  0.0   6548  2304 pts/2    S+   14:33   0:00 grep --color=auto polkit

EDIT 1

manually running:

/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1

(polkit-gnome-authentication-agent-1:8958): polkit-gnome-1-WARNING **: 14:58:28.666: Unable to get a pixbuf for GTK_STOCK_DIALOG_AUTHENTICATION (gtk-dialog-authentication) at size 48

(second output apear when you run bellow command)

$ archlinux-tweak-tool
---------------------------------------------------------------------------
[INFO] Checking session
[INFO] Display = :0
[INFO] Session = x11
[INFO] Xauth session = OK
---------------------------------------------------------------------------
[INFO] Starting ArchLinux Tweak Tool
Traceback (most recent call last):
  File "/usr/share/archlinux-tweak-tool/archlinux-tweak-tool.py", line 4756, in <module>
    with open("/tmp/att.pid", "w", encoding="utf-8") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/tmp/att.pid'

EDIT 2

Removing /tmp/att.pid allow you to access the program

AndreasBrostrom commented 11 months ago

Solved it by accedent see edit 1 and 2