Stopping other users’ processes
Most of what runs on your desktop is yours, and Task Center stops it directly. Some things aren’t: system daemons, other users’ programs, and containers whose processes run as root or under the sub-user IDs of rootless Podman. For those Task Center takes these steps, in order:
- Containers go through their engine. A container row is stopped with
docker stop, force stopped withdocker kill, suspended withdocker pause(and the same withpodman). The engine knows the container and its restart policy, and rootless containers work without any password. - Your own processes get the signal directly.
- Everything else runs as administrator.
- If you’re an administrator (a member of
wheel,sudooradmin), Task Center asks for your password and shows the exact command it will run, for examplekill -15 -- 1234ordocker stop 76767663…. It checks the password first, so a mistyped password is reported as such. After one correct password,sudoremembers it for a few minutes, as it does in a terminal. - Without sudo rights it uses
pkexec, which shows your desktop’s own password dialog.
- If you’re an administrator (a member of
Task Center itself never runs as root: only kill, docker, podman, smartctl or the
reader below do. An
AppImage couldn’t even be started by root, since its files are mounted for your user only.
Before a signal is sent, Task Center checks that each process is still the one you selected (by its start time), so a process ID the system has handed to a new program in the meantime is left alone.
Seeing other users’ processes in full
Every process is listed, whoever runs it. But for another user’s process (root’s daemons,
gdm, a container) Linux shows only its owner the disk use, the program file and the graphics
use: those columns stay empty.
Read as administrator on the Apps page fills them in. It asks for your password the same
way as above, then runs a small script as root that only reads /proc: each second Task
Center asks it for the disk counters (/proc/<pid>/io), the program files (/proc/<pid>/exe)
and, on AMD and Intel graphics, the graphics handles (/proc/<pid>/fdinfo). The dialog shows
the whole script. Click the button again to stop it; it also ends when Task Center closes.
It isn’t remembered, so the next start asks again.