Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312807 - gnome-extra/nm-applet-0.8 and 0.7.2 doesn't let the user to create system connections
Summary: gnome-extra/nm-applet-0.8 and 0.7.2 doesn't let the user to create system con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Robert Piasek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-02 13:22 UTC by Enrico Tagliavini
Modified: 2010-08-17 16:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
a screenshot of the grey checkbox (kde4.3-28.png,325.14 KB, image/png)
2010-04-02 13:25 UTC, Enrico Tagliavini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Tagliavini 2010-04-02 13:22:53 UTC
gnome-extra/nm-applet-0.8 (and also the 0.7.2 when i tried some days ago) doesn't let me to make system connections since the checkbox "available to all users" is grey. There is no output if i start nm-applet from the shell and no output in the syslog too. I applied the policy specified in the warning of the networkmanager ebuild of course.

I don't know if this makes some difference but i run nm-applet in KDE i don't have gnome installed.

Reproducible: Always

Steps to Reproduce:
1. Start nm-applet
2. make a new connection (a wireless or wired one for example)
3. notice that the checkbox "available to all users" is not clickable so it cannot be selected
Comment 1 Enrico Tagliavini 2010-04-02 13:25:16 UTC
Created attachment 226273 [details]
a screenshot of the grey checkbox

Here is a screenshot to better explain the problem. Btw i've forgotten to say: i don't know if this bug might be related to bug 250860 .. i don't think so but i mention it just in case....
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-04-02 14:13:23 UTC
No, this is not gnome.
Comment 3 Enrico Tagliavini 2010-04-02 14:17:32 UTC
(In reply to comment #2)
> No, this is not gnome.
> 

I'm sorry it is in the gnome-extra category this mislead me. I apologyse
Comment 4 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-04-03 07:27:01 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > No, this is not gnome.
> I'm sorry it is in the gnome-extra category this mislead me. I apologyse
> 

See metadata.xml; re-assigning to correct maintainers.

Also, check if you have the polkit authentication agent in your startup applications list [/usr/libexec/polkit-gnome-authentication-agent-1]
Comment 5 Enrico Tagliavini 2010-04-03 09:46:08 UTC
You are right polkit-gnome-authentication-agent-1 is not running. I tried to start it but i get this error

(polkit-gnome-authentication-agent-1:3876): polkit-gnome-1-WARNING **: Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '3876' org.freedesktop.ConsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for%20process%20%273876%27

console-kit-daemon is running
Comment 6 Nirbheek Chauhan (RETIRED) gentoo-dev 2010-04-03 13:43:50 UTC
(In reply to comment #5)
> You are right polkit-gnome-authentication-agent-1 is not running. I tried to
> start it but i get this error

What are the use-flags on pambase and consolekit for you; and which versions of those do you have? What groups are you in?
Comment 7 Enrico Tagliavini 2010-04-03 13:50:36 UTC
(In reply to comment #6)
> What are the use-flags on pambase and consolekit for you; and which versions of
> those do you have? What groups are you in?
> 

sys-auth/pambase-20100310 cracklib sha512 -consolekit -debug -gnome-keyring -mktemp -passwdqc -selinux -ssh
sys-auth/consolekit-0.4.1 pam policykit -debug -doc

uid=1000(enrico) gid=1000(enrico) gruppi=0(root),6(disk),10(wheel),18(audio),19(cdrom),27(video),35(games),85(usb),100(users),250(portage),1000(enrico),1006(wireshark),1007(kvm),1010(plugdev),1011(polkituser)

i guess i may need to compile pambase with consolekit enabled at this point
Comment 8 Enrico Tagliavini 2010-04-03 22:35:56 UTC
Sorry for the late i was busy. I compiled sys-auth/pambase with consolekit and gnome-keyworing. same result as before
Comment 9 Enrico Tagliavini 2010-04-03 22:40:24 UTC
ehm i meant gnome-keyring of course :)
Comment 10 Enrico Tagliavini 2010-04-06 10:31:50 UTC
A little update. I added consolekit and policykit USEs to my make.conf. Now /usr/libexec/polkit-gnome-authentication-agent-1 starts with

(polkit-gnome-authentication-agent-1:4766): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'
(polkit-gnome-authentication-agent-1:4766): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

but this seems harmless to me. But this is not started by any program, i have to start it manually. Anyway started or not, nm-applet still doesn't let me to create system connections
Comment 11 Enrico Tagliavini 2010-04-21 11:27:38 UTC
This is odd, now it seems to work, the the checkbox "available to all
users" is no more grey. i've not tested if it really works, but i will. The only thing i changed is the connection-sharing USE flag which is now enabled so i recompiled networkmanager (today).

a note: /usr/libexec/polkit-gnome-authentication-agent-1 is not started so this seems to not be related.
Comment 12 Enrico Tagliavini 2010-04-24 16:14:52 UTC
Ok it seems to work, but i have to start /usr/libexec/polkit-gnome-authentication-agent-1 manually to be able to make the connection a system connection, otherwise the authentication dialog will not appear. 

I think a wiki page or an official gentoo guide should be written for networkmanager, it is not trivial to use it full featured, and fooding with ewarn is not a big deal eheh :)
Comment 13 Robert Piasek (RETIRED) gentoo-dev 2010-08-17 14:44:46 UTC
Can you please try version 0.8.1-r3? It adds Gentoo specific plugin. Right now NM should be able to fully understand your Gentoo configuration and allow you to modify /etc/conf.d/net connections.

I'm going to close this bug now. If you need any more help please re-open.
Comment 14 Enrico Tagliavini 2010-08-17 16:00:52 UTC
(In reply to comment #13)
> Can you please try version 0.8.1-r3? It adds Gentoo specific plugin. Right now
> NM should be able to fully understand your Gentoo configuration and allow you
> to modify /etc/conf.d/net connections.
> 
> I'm going to close this bug now. If you need any more help please re-open.
> 

It is fixed with 0.8.0 too since i updated to kde-4.4, and i think this is becouse kde 4.4 has more support for polkit (polkit-kde-authentication-agent-1 is the winner) and more nm integration. Anyway i updated to nm 0.8.1 and it works except nm doesn't respect my hostname set in conf.d/hostname , it ask to the dhcp server for an hostname (but it also send the current hostname to the dhcp server and the dhcp server register it for the dns, but this is another bug and if you want i can open another entry for this if you want). Anyway i think i should check better something before (like my conf.d/net settings that might be out of date). 

Thank you very much :)