diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-03 11:49:02 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-03 11:49:02 -0300 |
commit | d6b8f2b882a17846dc9ec0399ef700456d5cf23d (patch) | |
tree | 468c8b5a92853ed0b1d063addfca0fcde74629f3 | |
parent | 4fe97d7a39b34ce2a2762c57136e505096b1fb23 (diff) | |
download | xsession-d6b8f2b882a17846dc9ec0399ef700456d5cf23d.tar.gz xsession-d6b8f2b882a17846dc9ec0399ef700456d5cf23d.tar.bz2 |
Fix POWERLINE_PID evaluation
-rwxr-xr-x | xsessionrc.dot.link | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link index d50d7e2..e9e7e28 100755 --- a/xsessionrc.dot.link +++ b/xsessionrc.dot.link @@ -138,7 +138,9 @@ fi # Kill any previous powerline-awesome instance # A window manager like Awesome may later start a new instance so it can appear at the wibar -POWERLINE_PID="`ps -o pid,command | grep powerline-awesome.py | cut -d ' ' -f 1`" +#POWERLINE_PID="`ps -ax -o pid,command | grep 'powerline-awesome.py' | grep -v grep | awk '{ print $1 }'`" +#POWERLINE_PID="`ps -x -o pid,command | grep '^/usr/bin/python /usr/share/powerline/bindings/awesome/powerline-awesome.py' | cut -d ' ' -f 1`" +POWERLINE_PID="`pidof -x /usr/share/powerline/bindings/awesome/powerline-awesome.py`" if [ ! -z "$POWERLINE_PID" ]; then kill $POWERLINE_PID fi |