02-29-2024, 08:34 PM
[quote pid='52598' dateline='1709238165']
What happens if you replace "pi" with the correct user name?
[/quote]
Still doesn't work ... The file is re-edited in the code worker.php !
<snip>
//----------------------------------------------------------------------------//
workerLog('worker: --');
workerLog('worker: -- Peripherals');
workerLog('worker: --');
//----------------------------------------------------------------------------//
// Start local display
sysCmd("sed -i '/User=/c \User=" . $_SESSION['user_id'] . "' /lib/systemd/system/localui.service");
sysCmd('systemctl daemon-reload');
if ($_SESSION['localui'] == '1') {
startLocalUI();
}
workerLog('worker: Local display: ' . ($_SESSION['localui'] == '1' ? 'on' : 'off'));
// On-screen keyboard (Enable is text on the button)
if (!isset($_SESSION['on_screen_kbd'])) {
$_SESSION['on_screen_kbd'] = 'Enable';
}
What happens if you replace "pi" with the correct user name?
[/quote]
Still doesn't work ... The file is re-edited in the code worker.php !
<snip>
//----------------------------------------------------------------------------//
workerLog('worker: --');
workerLog('worker: -- Peripherals');
workerLog('worker: --');
//----------------------------------------------------------------------------//
// Start local display
sysCmd("sed -i '/User=/c \User=" . $_SESSION['user_id'] . "' /lib/systemd/system/localui.service");
sysCmd('systemctl daemon-reload');
if ($_SESSION['localui'] == '1') {
startLocalUI();
}
workerLog('worker: Local display: ' . ($_SESSION['localui'] == '1' ? 'on' : 'off'));
// On-screen keyboard (Enable is text on the button)
if (!isset($_SESSION['on_screen_kbd'])) {
$_SESSION['on_screen_kbd'] = 'Enable';
}