From a3bce1dc5c1b7d7f9ec653b902d1211252bb20a4 Mon Sep 17 00:00:00 2001
From: j1nx
Date: Sat, 6 Jun 2020 11:41:09 +0200
Subject: [PATCH] MycroftOS: GUI: Changes to mycroft-gui systemd service file
---
.../package/mycroft-service/mycroft-gui.service | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/buildroot-external/package/mycroft-service/mycroft-gui.service b/buildroot-external/package/mycroft-service/mycroft-gui.service
index 7c09d42e..7fa4a9e7 100644
--- a/buildroot-external/package/mycroft-service/mycroft-gui.service
+++ b/buildroot-external/package/mycroft-service/mycroft-gui.service
@@ -10,12 +10,16 @@ After=weston.service
User=mycroft
WorkingDirectory=/home/mycroft
Environment=QT_QPA_PLATFORM=wayland
+Environment=QT_PLUGIN_PATH=/usr/lib/qt/plugins:/usr/lib/plugins:/usr/lib/plugins/kf5
+Environment=QT_LOGGING_RULES='*=false'
Environment=XDG_RUNTIME_DIR=/tmp/weston
+Environment=XDG_DATA_DIRS=/usr/share/kf5:$XDG_DATA_DIRS
Environment=LD_LIBRARY_PATH=/usr/lib
+Environment=LIBEXEC_PATH=/usr/lib/libexec:/usr/lib/libexec/kf5
Environment=QML2_IMPORT_PATH=/usr/lib/qml
-ExecStartPre=-/usr/bin/sudo /bin/psplash-write QUIT
+ExecPreStart=/usr/bin/sh -c 'export $(dbus-launch)'
ExecStart=mycroft-gui-app --hideTextInput --maximize
-StandardOutput=journal
+StandardOutput=null
Restart=on-failure
[Install]