Skip to content

Commit

Permalink
Strip whitespace from 'i3 --get-socketpath' output.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitelynx committed Mar 20, 2012
1 parent 09193bd commit 8b04e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i3ipc/i3path.py
Expand Up @@ -103,7 +103,7 @@ def from_xdg():


def from_i3(): def from_i3():
try: try:
return subprocess.check_output(["i3", "--get-socketpath"]) return subprocess.check_output(["i3", "--get-socketpath"]).strip()
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
return return


Expand Down

0 comments on commit 8b04e48

Please sign in to comment.