From e73b5bbd00a960b6226ff15fd12934a406431fcf Mon Sep 17 00:00:00 2001
From: j1nx
Date: Sun, 17 May 2020 17:34:03 +0200
Subject: [PATCH] MycroftOS: GUI: Changes/fixes to the splash update. As the
mycroft services run as the mycroft user the splash updates need to be done
via sudo/root.
---
.../usr/lib/systemd/system-preset/10-mycroftos.preset | 2 +-
.../lib/systemd/system/mycroft-enclosure.service.d/splash.conf | 2 +-
.../lib/systemd/system/mycroft-messagebus.service.d/splash.conf | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-mycroftos.preset b/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-mycroftos.preset
index 3e8688b5..51c07330 100644
--- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-mycroftos.preset
+++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system-preset/10-mycroftos.preset
@@ -13,7 +13,6 @@ enable seeed-voicecard.service
enable mycroft-splash-start.service
enable mycroft-splash-40.service
enable mycroft-splash-60.service
-enable mycroft-splash-quit.service
enable mycroft.service
enable mycroft-messagebus.service
enable mycroft-voice.service
@@ -21,6 +20,7 @@ enable mycroft-audio.service
enable mycroft-skills.service
enable mycroft-enclosure.service
+disable mycroft-splash-quit.service
disable getty@.service
disable mosquitto.service
disable motion.service
diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-enclosure.service.d/splash.conf b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-enclosure.service.d/splash.conf
index c4c20229..d5188799 100644
--- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-enclosure.service.d/splash.conf
+++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-enclosure.service.d/splash.conf
@@ -1,2 +1,2 @@
[Service]
-ExecStartPre=-/bin/psplash-write "PROGRESS 95"
+ExecStartPre=-/usr/bin/sudo /bin/psplash-write "PROGRESS 95"
diff --git a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-messagebus.service.d/splash.conf b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-messagebus.service.d/splash.conf
index 4e7047f7..8e851bfb 100644
--- a/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-messagebus.service.d/splash.conf
+++ b/buildroot-external/rootfs-overlay/usr/lib/systemd/system/mycroft-messagebus.service.d/splash.conf
@@ -1,2 +1,2 @@
[Service]
-ExecStartPre=-/bin/psplash-write "PROGRESS 90"
+ExecStartPre=-/usr/bin/sudo /bin/psplash-write "PROGRESS 90"