Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

  1. Containers go through their engine. A container row is stopped with docker stop, force stopped with docker kill, suspended with docker pause (and the same with podman). The engine knows the container and its restart policy, and rootless containers work without any password.
  2. Your own processes get the signal directly.
  3. Everything else runs as administrator.
    • If you’re an administrator (a member of wheel, sudo or admin), Task Center asks for your password and shows the exact command it will run, for example kill -15 -- 1234 or docker stop 76767663…. It checks the password first, so a mistyped password is reported as such. After one correct password, sudo remembers 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.

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.