Commits

Luke Plant committed be50a08

Fixed bug in case where process list has non-ascii characters

  • Participants
  • Parent commits 2c843c3

Comments (0)

Files changed (1)

File playerdo/backends/quodlibet.py

     friendly_name = "quodlibet"
 
     def is_running(self):
-        processes = process_stdout(["ps", "-A", "-o", "cmd"]).decode('ascii').split("\n")
+        processes = process_stdout(["ps", "-A", "-o", "cmd"]).decode('ascii', errors="ignore").split("\n")
         return len([p for p in processes
                 if (p.startswith("python")
                     and ("quodlibet" in p))]) > 0