From 2b58c8bc693c102316e867de192d1dc28bbd0fa7 Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Sat, 10 Jan 2026 18:23:40 +0100 Subject: [PATCH] fix(control): could not shutdown --- control/frontend/src/lib/ts/api_handler.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/control/frontend/src/lib/ts/api_handler.ts b/control/frontend/src/lib/ts/api_handler.ts index 24f6d03..a3ac633 100755 --- a/control/frontend/src/lib/ts/api_handler.ts +++ b/control/frontend/src/lib/ts/api_handler.ts @@ -22,7 +22,10 @@ export async function open_file(ip: string, path_to_file: string): Promise await request_display(ip, get_sanitized_file_url(path_to_file), options); } -export async function send_keyboard_input(ip: string, inputs: { key: string; action: 'press' | 'release'}[]): Promise { +export async function send_keyboard_input( + ip: string, + inputs: { key: string; action: 'press' | 'release' }[] +): Promise { const options = { method: 'PATCH', headers: { 'content-type': 'application/json' }, @@ -294,7 +297,7 @@ async function run_shell_command(ip: string, command: string): Promise { - return await run_shell_command(ip, 'shutdown -h now'); + return await run_shell_command(ip, 'xfce4-session-logout --halt'); } export async function startup(mac: string): Promise {