https://bugs.kde.org/show_bug.cgi?id=495441

--- Comment #4 from Dominik Kummer <ad...@arkades.org> ---
INFO:

Additional update on the demo wrapper script `/home/me/bin/make` mentioned
below. This version also terminates the process inside the build.slice as the
script is terminated by kdevelop for example:
--
#!/bin/bash

# Run the command in the systemd slice and capture job ID
# Check if the script is being run as root
if [ "$EUID" -eq 0 ]; then
    # Run make within a systemd slice with --pipe to pass output directly
    systemd-run --same-dir --scope --send-sighup --quiet --slice=build.slice
/bin/make "$@"
else
    # Run the command normally if already in user context
    systemd-run --user --same-dir --scope --quiet --send-sighup
--slice=build.slice /bin/make "$@"
fi
--

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to