LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-23-2012, 08:46 AM   #1
zakame
Member
 
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 119

Rep: Reputation: 42
-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?

Last edited by zakame; 07-23-2012 at 08:49 AM.
 
Old 07-23-2012, 09:19 AM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
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
 
Old 07-23-2012, 09:26 AM   #3
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,380

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
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.
 
1 members found this post helpful.
Old 07-23-2012, 11:57 AM   #4
zakame
Member
 
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 119

Original Poster
Rep: Reputation: 42
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...
 
Old 07-23-2012, 11:24 PM   #5
zakame
Member
 
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 119

Original Poster
Rep: Reputation: 42
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
 
Old 07-24-2012, 05:30 PM   #6
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,208

Rep: Reputation: 176Reputation: 176
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?
 
Old 07-24-2012, 07:39 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 853

Rep: Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658
Quote:
Originally Posted by cwizardone View Post
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.
 
Old 07-24-2012, 08:18 PM   #8
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,208

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by volkerdi View Post
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)?
 
Old 07-24-2012, 08:24 PM   #9
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 853

Rep: Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658Reputation: 1658
Quote:
Originally Posted by cwizardone View Post
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.
 
  


Reply

Tags
dbus, networkmanager, x11


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] When using NetworkManager in KDE 4.7.4, how do you manage iptables? allend Slackware 2 01-20-2012 08:14 AM
Bash script - obtain current workdirs of all konsole terminal/sessions Ishrimak Linux - Newbie 5 01-17-2011 06:47 PM
How to kill pids for all sessions for a specific user except their current one? jasonws Programming 3 10-22-2010 03:39 PM
Two kde sessions in slackware-current olego Slackware 11 02-04-2010 05:55 AM
Number of current sessions for user neel_learning_linux Linux - Newbie 5 05-13-2009 03:14 PM


All times are GMT -5. The time now is 01:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration