#!/bin/bash lockfile=$(/bin/ls /tmp | grep qtsingleapp-clem-* | grep -v lockfile) [[ $lockfile ]] && clementine -t || (clementine & clementine -t)