09-09-2023, 02:56 PM
When moOde starts up (worker.php) there is the line of code below that replaces the userid in the service file with whatever userid is reported in the "System" section of the startup log (moodeutl -l).
Code:
// Start LocalUI
sysCmd("sed -i '/User=/c \User=" . $_SESSION['user_id'] . "' /lib/systemd/system/localui.service");