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
|
||||
WorkingDirectory=/home/mycroft
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
ExecCondition=/usr/sbin/screencheck
|
||||
ExecStart=/home/mycroft/.local/share/systemd/mycroft-systemd_gui.py
|
||||
StandardOutput=append:/var/log/mycroft/enclosure_gui.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=LIBEXEC_PATH=/libexec:/usr/libexec:/usr/lib/libexec
|
||||
Environment=QML2_IMPORT_PATH=/usr/lib/qml
|
||||
ExecCondition=/usr/sbin/screencheck
|
||||
ExecStartPre=-/usr/bin/kbuildsycoca5
|
||||
ExecStart=mycroft-embedded-shell --maximize
|
||||
StandardOutput=null
|
||||
|
|
Loading…
Reference in New Issue