diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-02 23:20:24 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-02 23:20:24 +0100 |
commit | e2aade95a06d06326d8f401e2836b846795aeb80 (patch) | |
tree | 2633950673d9b31fb7bbed36ccc5bc57f1e5ae15 /src/plugins/moc.py | |
parent | add moc (diff) | |
download | xpybar-e2aade95a06d06326d8f401e2836b846795aeb80.tar.gz xpybar-e2aade95a06d06326d8f401e2836b846795aeb80.tar.bz2 xpybar-e2aade95a06d06326d8f401e2836b846795aeb80.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/plugins/moc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/moc.py b/src/plugins/moc.py index 560370a..04bda65 100644 --- a/src/plugins/moc.py +++ b/src/plugins/moc.py @@ -58,7 +58,7 @@ class MOC: Constructor ''' self.__info = {} - for line in spawn_read('mocp', '--info').split('\n'): + for line in MOC.__interact('--info').stdout.read().decode('utf-8', 'replace').split('\n'): if ': ' in line: line = line.split(': ') self.__info[line[0]] = ': '.join(line[1:]) @@ -99,7 +99,7 @@ class MOC: @return :Popen The spawned process ''' command = ['mocp'] + list(args) - return subprocess.Popen(command, stderr = sys.stderr, stdout = subprocess.PIPE) + return subprocess.Popen(command, stderr = subprocess.PIPE, stdout = subprocess.PIPE) @staticmethod |