2016-09-27, 06:49
Is it possible to configure Kodi so it won't open a new instance when I am launching it (using Linux Mint if it's important), but it will just bring the existing and running instance to the foreground?
Thanks
Thanks
#! /bin/bash
winid=''
winid=$(wmctrl -l|cut -d' ' -f1,5|grep 'Kodi'|cut -d' ' -f1)
if [ ! -z "$winid" ]
then
xdotool windowactivate $winid
else
/usr/bin/kodi &
fi
exit 0