You are not logged in.

#1 2015-12-26 08:03:21

zhou13
Member
Registered: 2009-10-07
Posts: 35

[solved]Cannot launch authentication agents in i3

I found that the mount feature does not work in nautilus in i3.  Therefore I follow https://wiki.archlinux.org/index.php/Polkit and try to install an polkit authentication agents.  However, when I try to launch a authentication agent, it always gives error "No session for pid XXX", where XXX is the pid of that agent.

For example, if I launch lxqt-policykit-agent, I got

New PolkitAgentListener  0xab07a0
Adding new listener  PolkitQt1::Agent::Listener(0x7ffde135bc80) for  0xab07a0
"Cannot create unix session: No session for pid 4966"

** (process:4966): CRITICAL **: polkit_agent_listener_register_with_options: assertion 'POLKIT_IS_SUBJECT (subject)' failed
"Cannot register authentication agent!"

other policykit agent gives the similar error.

I am using lightdm and here is some result of loginctl:

$ loginctl
   SESSION        UID USER             SEAT            
        c2       1000 zhou13           seat0           

1 sessions listed.

Last edited by zhou13 (2016-01-04 09:12:52)

Offline

#2 2016-01-03 13:54:42

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [solved]Cannot launch authentication agents in i3

Have you installed udisks2 and gvfs
https://wiki.archlinux.org/index.php/Fi … y#Mounting

Offline

#3 2016-01-04 00:57:25

zhou13
Member
Registered: 2009-10-07
Posts: 35

Re: [solved]Cannot launch authentication agents in i3

The whole gnome is installed.  I can manually mount my disk with udisk2.  But I just cannot launch the polkit authentication agents to input the password for nautilus under i3.

Offline

#4 2016-01-04 08:35:09

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: [solved]Cannot launch authentication agents in i3

I am running i3 with mc as file-manaer, and I have only polkit installed, I can mount using udevil ($ devmon -a) , with devmon@user.service running.
Previously I was having udisks2 with thunar and gvfs, automount was working with thunar daemon running in background (in i3), but later on decided to go minimalistic and removed complete xfce4 DE including thunar and everything else.

I guess you have issue of multiple pokit agents installed, try posting output of

pacman -Qs polkit,

or probably nautilus is not happy in i3 (missing some gnome services), try using thunar or pcmanfm,

Offline

#5 2016-01-04 09:12:10

zhou13
Member
Registered: 2009-10-07
Posts: 35

Re: [solved]Cannot launch authentication agents in i3

Surprisingly, today my policykit-agent (both gnome and lxqt) runs without error!  It seems that these are some random bugs in some system components and they are fixed in recent rolling release.

Thanks for the help!

Offline

Board footer

Powered by FluxBB