LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   -current NetworkManager in non-KDE sessions (https://www.linuxquestions.org/questions/slackware-14/current-networkmanager-in-non-kde-sessions-4175418238/)

zakame 07-23-2012 08:46 AM

-current NetworkManager in non-KDE sessions
 
So, I just recently upgraded to Slackware 14.0 beta, seeing the new XFCE 4.10 series fresh in, and I wanted to try it so I switched my .xinitrc to startxfce4.


X11 under XFCE is nice and simple, but I missed NetworkManager; reading around I noticed I need to launch the DE under ck-launch-session to get ConsoleKit integration, for nm-applet/nm-tool to authenticate to DBus correctly (aside from DBus, which the DE invoked should already pull in anyway:)


Code:

#!/bin/sh
. ~/.xsession
exec ck-launch-session startxfce4


That got nm-applet to show up under XFCE4, but now it asks me for WiFi credentials, which I know is already saved under KDE (I don't get asked this when I switch back to my old DE;) is there anything else I should add to my .xinitrc/.xsession to enable credentials lookup for NetworkManager to connect to my existing WiFi?

sahko 07-23-2012 09:19 AM

I had some issues as well: http://www.linuxquestions.org/questi...ml#post4735768

I dont think you can save the password for both DE's though

ponce 07-23-2012 09:26 AM

xinitrc for xfce has changed: now it contains this
Code:

#!/bin/sh

# Xfce's startxfce4 script includes support for launching itself inside
# a new ConsoleKit session, so let's use it instead of hacking our own
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec /usr/bin/startxfce4 --with-ck-launch
else
  exec /usr/bin/startxfce4
fi

to use the new, just run again xwmconfig.

zakame 07-23-2012 11:57 AM

Thanks ponce, good catch there, though it doesn't really change anything with regards to getting saved WiFi configurations.

I notice in the console log of a GLib-GIO-Message, possibly from nm-applet:

Code:

GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be save or shared with other applications.
There is a similar message for Emacs that was reported, so that could be something...

zakame 07-23-2012 11:24 PM

Figured it out now :) I needed to edit the connection for my WiFi and save the password once, and this will invoke the KDE DaemonSecret service for the first time to create the 'default' collection which nm-applet will read saved passwords from; once that is done, subsequent NetworkManager re-auths now lookup the saved password and do not bug me anymore :)

I'll post screenshots later to better see what I'm writing about; hope this will be useful to others ;)

cwizardone 07-24-2012 05:30 PM

Isn't that why gnome-keyring and libgnome-keyring are now part of Slackware, i.e., to support the use of NetworkManager in Xfce-4.10?

volkerdi 07-24-2012 07:39 PM

Quote:

Originally Posted by cwizardone (Post 4737098)
Isn't that why gnome-keyring and libgnome-keyring are now part of Slackware, i.e., to support the use of NetworkManager in Xfce-4.10?

Nope. That was gvfs requiring udisks2 and libsoup, which then required gnome-keyring and libgnome-keyring (and libproxy). NetworkManager doesn't need those, but nm-applet does. Didn't decide to go for network-manager-applet until Xfce had progressed to the point where I'd finished splitting it up and had it in its own series, but then I was happy those deps were already there.

cwizardone 07-24-2012 08:18 PM

Quote:

Originally Posted by volkerdi (Post 4737159)
Nope. That was gvfs requiring udisks2 and libsoup, which then required gnome-keyring and libgnome-keyring (and libproxy). NetworkManager doesn't need those, but nm-applet does. Didn't decide to go for network-manager-applet until Xfce had progressed to the point where I'd finished splitting it up and had it in its own series, but then I was happy those deps were already there.

Ah, so....
So let me ask the question in a different way; Doesn't the network-manager-applet (for Xfce) require gnome-keyring and libgrome-keyring in order to save password information (or maybe just libgnome-keyring)?

volkerdi 07-24-2012 08:24 PM

Quote:

Originally Posted by cwizardone (Post 4737175)
Ah, so....
So let me ask the question in a different way; Doesn't the network-manager-applet (for Xfce) require gnome-keyring and libgrome-keyring in order to save password information (or maybe just libgnome-keyring)?

Yes, it does. Both of them, I think.


All times are GMT -5. The time now is 09:00 PM.