From 7b725d7db02ce94c9ef07d0db0c9a4217743bb86 Mon Sep 17 00:00:00 2001 From: bryan Date: Mon, 12 Jun 2023 14:49:20 -0400 Subject: [PATCH] Fix duplicate service file entries --- installJRMC | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index 9451a8a..4658f87 100755 --- a/installJRMC +++ b/installJRMC @@ -1259,8 +1259,7 @@ setServiceVars() { # TODO Ubuntu needs these in the service file, fedora (and others?) do not case $ID in ubuntu|debian) - DISPLAY_STRING="Environment=DISPLAY=$DISPLAY" - DISPLAY_STRING+=$'\n'"Environment=XAUTHORITY=$XAUTHORITY" + DISPLAY_STRING="Environment=XAUTHORITY=$XAUTHORITY" ;; *) DISPLAY_STRING="" @@ -1299,9 +1298,9 @@ service_jriver-mediacenter() { After=$GRAPHICAL_TARGET [Service] + Type=simple $USER_STRING $DISPLAY_STRING - Type=simple Environment=DISPLAY=$DISPLAY ExecStart=/usr/bin/mediacenter$MC_MVERSION $* KillMode=none