FreeBSD Desktop - Part 16 - Configuration - Pause Any Application reddit / BSD ---------------------------------------------------------------------- SunosUnix · 2018-09-19 13:14 So kill -17 $(pidof firefox) is too complex? Or am i thinking GNU userspace on this one? ---------------------------------------------------------------------- vermaden · 2018-09-19 14:11 That will only kill parent Firefox PID, what about PIDs of the tabs? Same with Chromium. ---------------------------------------------------------------------- SunosUnix · 2018-09-19 14:16 No, pidof will list all pids matching the argument, and at least with chrome, all the tab processes are called chrome. So it stops all of them. I would have to double check with firefox. ---------------------------------------------------------------------- vermaden · 2018-09-19 16:32 On FreeBSD there is no `pidof`, there is `pgrep` which does the same and with `-P` option shows all child processes but without the parent process. As we are using this `desktop-pause.sh` interactively I can only get PID of the main window with `xprop` or `xdotool`, thus I need to find the rest with `pgrep -P`. ---------------------------------------------------------------------- SunosUnix · 2018-09-19 16:38 Ah, so i was thinking of the GNU toolset. I can't keep Unix(like) OSes straight anymore. ---------------------------------------------------------------------- jsprada · 2018-09-20 05:37 Cool series on configuring the desktop! I've bookmarked the first entry, and will read them all! Thank you. ---------------------------------------------------------------------- vermaden · 2018-09-20 08:04 Thanks :)