This file contains 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 |