1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2024-12-28 01:30:59 +01:00
OpenVoiceOS/buildroot-external/package/mycroft-service/mycroft-gui.service
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

31 lines
943 B
Desktop File

[Unit]
Description=Mycroft GUI
PartOf=mycroft.service
After=mycroft.service
After=mycroft-messagebus.service
[Service]
User=mycroft
WorkingDirectory=/home/mycroft
Environment=QT_QPA_PLATFORM=eglfs
Environment=QT_QPA_EGLFS_KMS_ATOMIC=1
Environment=QT_QPA_PLATFORMTHEME=qt5ct
Environment=QT_PLUGIN_PATH=/usr/lib/qt/plugins:/usr/lib/plugins:/usr/lib/plugins/kf5
Environment=QT_LOGGING_RULES='*=false'
Environment=QT_FILE_SELECTORS=ovos
Environment=QT_FONT_DPI=120
Environment=XDG_RUNTIME_DIR=/tmp/mycroft
Environment=XDG_DATA_DIRS=/usr/share:/usr/local/share:$XDG_DATA_DIRS
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
Restart=on-failure
[Install]
WantedBy=mycroft.service