I was going for networkmanager-openswan, s I upgraded networkmanager and friends like this: =net-misc/networkmanager-openswan-0.9.2.0::gentoo ** =net-misc/networkmanager-0.9.2.0-r5::gentoo ** =net-misc/networkmanager-openvpn-0.9.2.0:0 ** =gnome-extra/nm-applet-0.9.2.0-r1:0 ** And when this error ocured I upgraded the followings packages too: =sys-auth/polkit-0.107:0 ** =dev-libs/glib-2.32.4:2 ** =dev-lang/spidermonkey-1.8.5-r1:0 ** =dev-util/gdbus-codegen-2.32.4:0 ** But it did not do anything. networkmanager works ok, I see it in syslog geting ip from dhcp on ethernet. but nm-applet has disabled the 'Enable Networking' and 'Enable Wireless' checkboxes. Also does not react for any connect/disconnect commands. running it from a terminals shows the following: on startup: $ nm-applet Gtk-Message: Failed to load module "gnomesegvhandler" ** Message: applet now removed from the notification area ** Message: applet now embedded in the notification area ** (nm-applet:2279): WARNING **: Failed to register as an agent: (32) No session found for uid 1000 when I click on a connection: ** (nm-applet:2279): WARNING **: Failed to add/activate connection: (32) Not authorized to control networking. I googled around, they all lead to polkit stuff, but couldn't do it. Reproducible: Always Steps to Reproduce: 1. try to use nm-applet 2. 3. Actual Results: nm-applet does not control networkmanager
Created attachment 319326 [details] emerge --info
The message "No session found for uid 1000" suggests that you have neither consolekit nor systemd working. Assuming that you don't to switch to systemd, make sure that an up-to-date version of consolkeit is running: a. make sure that sys-auth/consolekit-0.4.5_p20120320 is installed; b. rc-update add consolekit default c. /etc/init.d/consolekit start d. log out of your desktop session, and log back in. Second, please update to networkmanager-0.9.4.0-r5 and nm-applet-0.9.4.1 (the latest ~arch versions) and check whether the problem persists.
Thanks for the reply, I checked consolekit, it was installed. # qlist -Iv consolekit sys-auth/consolekit-0.4.5_p20120320 # rc-status |grep consolekit consolekit [ started ] I'll investigate connecting to consolekit further.
I upgraded to newest networkmanager and nm-applet, same results. $ qlist -Iv networkmanager nm-applet gnome-extra/nm-applet-0.9.4.1 net-misc/networkmanager-0.9.4.0-r5
What desktop session are you using (gnome2/gnome3/xfce/kde/...)? How are you launching that session (gdm/kdm/...)? If you are using some sort of custom homemade script, make certain that the final session-launching command is called via the expected ck-launch-session wrapper (for example, "exec ck-launch-session dbus-launch --exit-with-session gnome-session"). Is your user account a member of the plugdev group? (If it's not, add it.) Please provide the output from the following commands: ck-list-sessions pkcheck --action-id org.freedesktop.NetworkManager.settings.modify.system \ --process $$ && echo "pkcheck passed"
It's gdm. My user is added to plugdev. $ ck-list-sessions returns nothing $ pkcheck --action-id org.freedesktop.NetworkManager.settings.modify.system \ > --process $$ && echo "pkcheck passed" Not authorized.
(In reply to comment #6) > $ ck-list-sessions > returns nothing That is a problem. I'm adding consolekit maintainers to the CC list, hopefully they can figure out why consolekit is not registering your session.
Running from root: # pkcheck --action-id org.freedesktop.NetworkManager.settings.modify.system --process $$ && echo "pkcheck passed" pkcheck passed # grep -i ck-launch-session -R /etc/ /etc/X11/xinit/xinitrc.d/90-consolekit:# Xsession.d script for ck-launch-session. /etc/X11/xinit/xinitrc.d/90-consolekit:CK_LAUNCH_SESSION=/usr/bin/ck-launch-session could this be related? $ grep polkit .xsession-errors (polkit-gnome-authentication-agent-1:2026): polkit-gnome-1-WARNING **: Unable to determine the session we are in: GDBus.Error:org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '2026'
(In reply to comment #7) > (In reply to comment #6) > > $ ck-list-sessions > > returns nothing > > That is a problem. > > I'm adding consolekit maintainers to the CC list, hopefully they can figure > out why consolekit is not registering your session. bugzilla is not helpdesk, forums are more suitable. bugzilla can be used once the user has tracked down the reason why he doesn't have a session. http://forums.gentoo.org/viewtopic-t-858965-start-0.html
gdm was build without policykit. The forum thread helped, I checked everything. There was one comment: gdm has builtin consolekit support. Sorry for the noise. Thank you all for the support.