Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_gui fails to dock into systray when run sudo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2539
Location: Near Toronto

PostPosted: Wed May 11, 2016 1:33 pm    Post subject: wpa_gui fails to dock into systray when run sudo Reply with quote

I've got gentoo installed on my new x1 carbon and have only minor
issues

one is this: if I run wpa_gui sudo (which is required to control wifi
interfaces) it will not dock into the systray

what I run sudo wpa_gui I get this message:

Code:
org.kde.knotifications: env says KDE is running but SNI unavailable -- check KDE_FULL_SESSION and XDG_CURRENT_DESKTOP


KDE_FULL_SESSION = true
XDG_CURRENT_DESKTOP = KDE

sudo wpa_gui works as expected on my old T440s

both are running newest plasma 5 / kde 5.6 / qt 5.6

anyone have an idea why this is happening?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Wed May 11, 2016 9:22 pm    Post subject: Reply with quote

albright ...

you shouldn't need to run wpa_gui via sudo, the fact that you do suggests that 'ctrl_interface' is run as 'GROUP=0' (and so root) and not 'GROUP=wheel'.

head -n 2 /etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
update_config=1

Setting it to 'wheel' will mean the users in the wheel group will be able to send command (ie, via wpa_cli or wpa_gui) to the control interface, and so activate the network connection, etc. If you also want these user to be able to modify wpa_supplicant.conf (ie, add network blocks for AP's) also add 'update_config=1'.

That should be all you need do ... and you can stop using sudo for such things.

best ... khay
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2539
Location: Near Toronto

PostPosted: Wed May 11, 2016 11:47 pm    Post subject: Reply with quote

Quote:
That should be all you need do ... and you can stop using sudo for such things


fantastic - best answer to a forum question ever :)

works perfectly now; thanks v. much



EDIT: of course, the question remains why the sudo version works and docks
into systray on my T440S ...
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu May 12, 2016 6:45 am    Post subject: Reply with quote

albright wrote:
khayyam wrote:
That should be all you need do ... and you can stop using sudo for such things

fantastic - best answer to a forum question ever :) works perfectly now; thanks v. much

albright ... hehe, you're welcome.

albright wrote:
EDIT: of course, the question remains why the sudo version works and docks
into systray on my T440S ...

Not sure I understand, if you're using sudo then wpa_gui will be run with elevated privilages, and so it doesn't matter what GROUP is set to.

best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum