From ebc1cab4a2ecce3d444d0ba795833ccb1ec3defe Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Thu, 16 Feb 2023 23:30:29 -0500
Subject: mythtv: mythbackend.service: add PATH to Environment for
 mythfilldatabase xmltv

---
 linhes/mythtv/__changelog         | 3 ++-
 linhes/mythtv/mythbackend.service | 3 ++-
 linhes/mythtv/mythtv.desktop      | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/linhes/mythtv/__changelog b/linhes/mythtv/__changelog
index e14ae82..0be3e1e 100644
--- a/linhes/mythtv/__changelog
+++ b/linhes/mythtv/__changelog
@@ -1,3 +1,4 @@
 PKGBUILD: disable jack and remove dep
 PKGBUILD: move all opt deps to deps
-mythbackend.service: add --systemd-journal to exec
+mythbackend.service: add --syslog local6 to exec
+mythbackend.service: add Environment
diff --git a/linhes/mythtv/mythbackend.service b/linhes/mythtv/mythbackend.service
index 3535a1f..fb9f8b7 100644
--- a/linhes/mythtv/mythbackend.service
+++ b/linhes/mythtv/mythbackend.service
@@ -6,7 +6,8 @@ After=network.target mysqld.service systemd-udev-settle.service
 [Service]
 Type=simple
 User=mythtv
-ExecStart=/usr/bin/mythbackend --systemd-journal
+Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
+ExecStart=/usr/bin/mythbackend --syslog local6
 Restart=on-failure
 
 [Install]
diff --git a/linhes/mythtv/mythtv.desktop b/linhes/mythtv/mythtv.desktop
index bf5b2f1..2a963dd 100644
--- a/linhes/mythtv/mythtv.desktop
+++ b/linhes/mythtv/mythtv.desktop
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Name=MythTV
 Comment=A frontend for all content on a mythtv-backend
-Exec=mythfrontend --syslog local7 --noupnp
+Exec=mythfrontend --syslog local6 --noupnp
 Type=Application
 Icon=mythtv
-- 
cgit v0.12

