mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 18:36:55 +00:00
- cmdline-handler: Use systemctl mask to prevent kiosk startup - cmdline-handler: Kill X11/Chromium if already running - cmdline-handler: Create generator drop-in for correct target - kiosk.service: Wait for cmdline handler before starting - tui.service: Wait for cmdline handler before starting Fixes: TUI boot menu option was loading Kiosk GUI instead Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
667 B
Desktop File
31 lines
667 B
Desktop File
[Unit]
|
|
Description=SecuBox Console TUI Dashboard
|
|
Documentation=https://secubox.in/docs/tui
|
|
|
|
# Wait for cmdline handler to decide display mode FIRST
|
|
After=secubox-cmdline.service
|
|
Requires=secubox-cmdline.service
|
|
|
|
After=multi-user.target
|
|
After=network-online.target
|
|
After=secubox-firstboot.service
|
|
|
|
# Conflicts with kiosk mode
|
|
Conflicts=secubox-kiosk.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
ExecStartPre=/bin/sh -c '[ -f /var/lib/secubox/.tui-enabled ] || exit 1'
|
|
ExecStart=/usr/sbin/secubox-console-tui
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
StandardInput=tty
|
|
StandardOutput=tty
|
|
TTYPath=/dev/tty1
|
|
TTYReset=yes
|
|
TTYVHangup=yes
|
|
TTYVTDisallocate=yes
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|