From 3943862eb06e447f6dd17f644ba2608528265121 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Thu, 14 Jul 2016 19:24:59 -0400 Subject: [PATCH] Fix panel compatibility with new netctl-auto --- panel/panel_bar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/panel/panel_bar.py b/panel/panel_bar.py index 1667545..bf341b0 100755 --- a/panel/panel_bar.py +++ b/panel/panel_bar.py @@ -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)