I'm running Emacs on Ubuntu 20.04.04 LTS with the GNOME desktop and Xorg window system. I launch a file previewer located at
(start-process "proc-name" nil "/usr/bin/sushi" FILENAME)
After the previewer application launches successfully and remains open, the the Emacs process finishes and there are no active processes running through Emacs. I.e.,
M-x list-processes shows nothing active.
The process associated with
sushi can be seen with
M-x proced with a line as follows:
lawlist 13352 5.5 0.9 11:06 00:00 /usr/bin/gjs /usr/libexec/org.gnome.NautilusPreviewer
The above-process can be killed manually using the
M-x proced buffer interface.
Using Emacs, how can I programmatically test for whether this particular process is running and, and if so, kill it programmatically?