Fix duplicate service file entries

This commit is contained in:
2023-06-12 14:49:20 -04:00
parent 212a851f1a
commit 7b725d7db0

View File

@@ -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