I'm running two instances of omxiv (Omx Image Viewer). The first instance acts like a background image, and the second instance acts as a slideshow. My question is how can I specifically kill the second instance?
Small note: The second instance will always be opened after the first instance.
I was thinking about killing it by pid, but I am not sure if it will have the same pid after the reboot, therefore this might not work.
Right now I am calling:
pkill -9 omxiv
which is terminating both instances.