Last active
January 3, 2020 16:45
-
-
Save engineeror/4e61098c6dcd9157610e284b2365e7a9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# this waits for xfce4-panel's notification area process before launching protonmail-bridge so that the system tray icon shows | |
while : | |
do | |
result=$(ps -wef) # so that it doesn't capture grep | |
echo $result | grep -q "libsystray.so" | |
if [[ $? == 0 ]] | |
then | |
/usr/lib/protonmail/bridge/protonmail-bridge --no-window & | |
break | |
fi | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment