Теперь я придумал следующее:
Код: Выделить всё
#-o, --oldest: least recently started
#-u, --euid : match by effective UID
pgrep Lightshot.exe -o -u "$( id -u )"
Подробнее здесь: https://stackoverflow.com/questions/797 ... cific-user
Код: Выделить всё
#-o, --oldest: least recently started
#-u, --euid : match by effective UID
pgrep Lightshot.exe -o -u "$( id -u )"