#!/bin/bash # extra precautions until run_hooks_as_user: true is fixed if [ -n "$SUDO_USER" ] && [ "$EUID" == 0 ]; then exec su "$SUDO_USER" $0; fi systemctl --user disable wireplumber.service --now if [ "$?" -ne 0 ]; then echo "[WARN] You seem to be running a SystemD-less distro, so WirePlumber couldn't be stopped automatically. This is not that big of a deal; just stop it (AS A USER SERVICE!) manually yourself, according to however your init system works."; exit 0; fi