#!/bin/bash

if pgrep -l 'Jd2.M50.Desktop'
then
  echo Already running
else 
  # use exec to not have the wrapper script staying as a separate process
  # "$@" to pass command line arguments to the app
  exec /usr/lib/m50-ui/Jd2.M50.Desktop "$@"
fi
