def get_processes(self):
        """Grab a shuffled list of all currently running process names."""
        processes = set()
        try:
            # POSIX ps, so it should work in most environments where doge would
            result = subprocess.run(  # noqa: S603
                ["ps", "-A", "-o", "comm="],  # noqa: S607
                capture_output=True,
                text=True,
                check=True,
            )

            for comm in result.stdout.splitlines():
                name = comm.split("/")[-1]
                # Filter short and weird ones
                if name and len(name) >= self.MIN_PS_LEN and ":" not in name:
                    processes.add(name)

        except (OSError, subprocess.CalledProcessError):
            pass

        proc_list = list(processes)
        random.shuffle(proc_list)
        return proc_list
Grab a shuffled list of all currently running process names.
src/doge/core.py