mirror of
https://github.com/OpenVoiceOS/OpenVoiceOS
synced 2025-06-05 22:19:21 +02:00
Only start GUI services if a screen is attached.
Support only for rpi's at this moment. Will figure out x86_64 when we get there.
This commit is contained in:
parent
b713179e78
commit
3734680436
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
status="$(sudo tvservice -n 2>&1)"
|
||||||
|
|
||||||
|
if [ "$status" == "[E] No device present" ];
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
@ -9,6 +9,7 @@ User=mycroft
|
|||||||
Type=notify
|
Type=notify
|
||||||
WorkingDirectory=/home/mycroft
|
WorkingDirectory=/home/mycroft
|
||||||
Environment=PYTHONUNBUFFERED=1
|
Environment=PYTHONUNBUFFERED=1
|
||||||
|
ExecCondition=/usr/sbin/screencheck
|
||||||
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_gui.py
|
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_gui.py
|
||||||
StandardOutput=append:/var/log/mycroft/enclosure_gui.log
|
StandardOutput=append:/var/log/mycroft/enclosure_gui.log
|
||||||
StandardError=file:/var/log/mycroft/enclosure_gui.error.log
|
StandardError=file:/var/log/mycroft/enclosure_gui.error.log
|
||||||
|
@ -20,6 +20,7 @@ Environment=XDG_CURRENT_DESKTOP=kde
|
|||||||
Environment=LD_LIBRARY_PATH=/usr/lib
|
Environment=LD_LIBRARY_PATH=/usr/lib
|
||||||
Environment=LIBEXEC_PATH=/libexec:/usr/libexec:/usr/lib/libexec
|
Environment=LIBEXEC_PATH=/libexec:/usr/libexec:/usr/lib/libexec
|
||||||
Environment=QML2_IMPORT_PATH=/usr/lib/qml
|
Environment=QML2_IMPORT_PATH=/usr/lib/qml
|
||||||
|
ExecCondition=/usr/sbin/screencheck
|
||||||
ExecStartPre=-/usr/bin/kbuildsycoca5
|
ExecStartPre=-/usr/bin/kbuildsycoca5
|
||||||
ExecStart=mycroft-embedded-shell --maximize
|
ExecStart=mycroft-embedded-shell --maximize
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user