De inicio a pantalla completa firefox de linux de servicio

0

Pregunta

Me gustaría empezar una pantalla completa de firefox instancia en el arranque. He creado dos servicios:

Servicio de inicio de firefox:

[Unit]
Description=Service running firefox
After=network.target

[Service]
Type=simple
User=me
Environment="DISPLAY=:0"
ExecStart=/usr/bin/firefox --new-window /usr/local/src/index.html
Restart=on-failure
RestartSec=1
TimeoutSec=60
RuntimeMaxSec=infinity

[Install]
WantedBy=multi-user.target

Entonces tengo un servicio de envío de la F11 comando para activar pantalla completa. (No he podido hacer todo de un solo servicio)

[Unit]
Description=Service for firefox fullscreen
After=network.target start_firefox
BindsTo=start_firefox

[Service]
Type=simple
User=me
Environment="DISPLAY=:0"
ExecStart=/usr/bin/xdotool search --sync --onlyvisible --class "Firefox" windowactivate key F11
Restart=on-failure
RestartSec=1
TimeoutSec=60
RuntimeMaxSec=infinity

[Install]
WantedBy=multi-user.target

Sin embargo, no funciona. Los registros del segundo servicio son:

systemd[1]: Started Service for firefox fullscreen
xdotool[6268]: Error: Can't open display: (null)
xdotool[6268]: Failed creating new xdo instance
systemd[1]: firefox_fullscreen.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: firefox_fullscreen.service: Failed with result 'exit-code'.
systemd[1]: firefox_fullscreen.service: Service hold-off time over, scheduling restart.
systemd[1]: firefox_fullscreen.service: Scheduled restart job, restart counter is at 4.
systemd[1]: Stopped Service for firefox fullscreen

¿Qué estoy haciendo mal?

Estoy tratando de ejecutar este a través de ssh en un tablero usando ubuntu y conectado a una pantalla.

firefox linux systemd
2021-11-19 09:40:40
1

Mejor respuesta

0

Sólo el uso de "firefox --kiosco" y comienza en pantalla completa por sí mismo

2021-11-19 09:53:21

gracias, no sabía de este modo quiosco !
afvmil

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................