Skip to content

Commit

Permalink
Fix pgrep error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon2fly committed Feb 23, 2017
1 parent 04567fc commit fce8aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpn_indicator.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def callback(self):
time.sleep(1)

if satisfied:
another_me = Popen('pgrep -f "python vpn_indicator.py"'.split(), stdout=PIPE).communicate()[0]
another_me = Popen(['pgrep', '-f', "python vpn_indicator.py"], stdout=PIPE).communicate()[0]
another_me = another_me.strip().split('\n')

if len(another_me) > 1:
Expand Down

0 comments on commit fce8aae

Please sign in to comment.