1
0
Fork 0

Fix panel compatibility with new netctl-auto

This commit is contained in:
Jeremy Kaplan 2016-07-14 19:24:59 -04:00
commit 3943862eb0

View file

@ -78,7 +78,8 @@ def volume_update(_):
def wifi_update(_):
info = subprocess.check_output(['netctl-auto', 'list'])
active = [line for line in info.splitlines() if line[0] == '*']
lines = [line.decode('utf-8') for line in info.splitlines()]
active = [line[2:] for line in lines if line[0] == '*']
if active:
interface, network = active[0].split('-', 1)