เริ่มต้นแบบเต็มจอภาพไฟร์ฟอกซ์ name อกจากระบบลินุกซ์บริการ

0

คำถาม

ฉันต้องการที่จะเริ่มต้นเป็นไฟร์ฟอกซ์ name แบบเต็มจอภาพตัวอย่างที่รองเท้าบูท ฉันสร้างสองคนบริการ:

บริการเริ่มต้นไฟร์ฟอกซ์ name:

[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

งั้นฉันต้องบริการส่ง F11 คำสั่งแบบอักษรที่จะเปิดใช้งานแบบเต็มจอภาพ. (ฉันไม่ได้จัดการเพื่อทำให้ทุกอย่างจากนัดเดียวบริการ)

[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

อย่างไรก็ตามมันไม่ได้ผลหรอก ที่บันทึกของฉันไปจากที่สองบริการคือ:

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

ฉันทำอะไรผิดเหรอ?

ฉันพยายามที่จะวิ่งผ่านเรื่องนี้ไปบริการ ssh อยู่บนบอร์ดใช้ ubuntu และเกี่ยวข้องกัองจอภาพด้วย

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

คำตอบที่ดีที่สุด

0

แค่ใช้"ไฟร์ฟอกซ์ name--kiosk"และมันจะเริ่มในเต็มจอภาพโดยตัวมันเอง

2021-11-19 09:53:21

ขอบคุณคุณไม่รู้เรื่องนี้ kiosk โหมด!
afvmil

ในภาษาอื่นๆ

หน้านี้อยู่ในภาษาอื่นๆ

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

ดังอยู่ในนี้หมวดหมู่

ดังคำถามอยู่ในนี้หมวดหมู่