Permalink
Browse files

Strip whitespace from 'i3 --get-socketpath' output.

  • Loading branch information...
1 parent 09193bd commit 8b04e482f7993070e5dacec79b25f9683a95117f @whitelynx committed Mar 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 i3ipc/i3path.py
View
@@ -103,7 +103,7 @@ def from_xdg():
def from_i3():
try:
- return subprocess.check_output(["i3", "--get-socketpath"])
+ return subprocess.check_output(["i3", "--get-socketpath"]).strip()
except subprocess.CalledProcessError:
return

0 comments on commit 8b04e48

Please sign in to comment.