#This script checks if flux is running, you should call this before your app starts. That can be done by adding a call to
#this script right before your app starts, I simply modify the app launcher for that. Some other fancy ways are doable. 

#!/bin/sh
SERVICE='Flux'
 
if ps ax | grep -v grep | grep $SERVICE > /dev/null
then
    echo "$SERVICE service running, warn user"
    
    /usr/bin/osascript <<-EOF

      tell application "System Events"
        activate
        display dialog "Beware, Flux is running and colors are not real."
      end tell
EOF
else
    echo "$SERVICE is not running, all is good."
fi
