Compare commits

...

2 Commits

Author SHA1 Message Date
j1nx a3531e9af5 Forgot execute right for screencheck 2022-01-29 16:04:23 +01:00
j1nx 3734680436 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.
2022-01-29 16:00:51 +01:00
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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