Fix panel compatibility with new netctl-auto
This commit is contained in:
parent
1658000ac7
commit
3943862eb0
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue