Skip to content

Instantly share code, notes, and snippets.

@dancollins
Created June 25, 2014 06:51
Show Gist options
  • Save dancollins/891255886db5213d465c to your computer and use it in GitHub Desktop.
Save dancollins/891255886db5213d465c to your computer and use it in GitHub Desktop.
105c105,106
< subprocess.check_output(["pgrep", "spotify"])
---
> pgrep_out = subprocess.check_output(["pgrep", "spotify"])
> self.pids = pgrep_out.decode('utf-8').split()
284c285
< pids = pidof_out.decode("utf-8").strip().split(" ")
---
> #pids = pidof_out.decode("utf-8").strip().split(" ")
294c295
< pid = [k for k in idxd.keys() if k in pids][0]
---
> pid = [k for k in idxd.keys() if k in self.pids][0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment