aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-03 11:50:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-03 11:50:49 -0300
commita64051442c5cbada15698fb496467cbb92006aec (patch)
tree9e8e0d17f8329de62755ad4e8159d7b490e8e064
parentd6b8f2b882a17846dc9ec0399ef700456d5cf23d (diff)
downloadxsession-a64051442c5cbada15698fb496467cbb92006aec.tar.gz
xsession-a64051442c5cbada15698fb496467cbb92006aec.tar.bz2
Simplify powerline-awesome instance management
-rwxr-xr-xxsessionrc.dot.link8
1 files changed, 1 insertions, 7 deletions
diff --git a/xsessionrc.dot.link b/xsessionrc.dot.link
index e9e7e28..4f91340 100755
--- a/xsessionrc.dot.link
+++ b/xsessionrc.dot.link
@@ -138,13 +138,7 @@ 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 -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
-unset POWERLINE_PID
+kill `pidof -x /usr/share/powerline/bindings/awesome/powerline-awesome.py` > /dev/null 2>&1
# Custom SSH_ASKPASS config
# See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606934