Fix duplicate service file entries
This commit is contained in:
@@ -1259,8 +1259,7 @@ setServiceVars() {
|
|||||||
# TODO Ubuntu needs these in the service file, fedora (and others?) do not
|
# TODO Ubuntu needs these in the service file, fedora (and others?) do not
|
||||||
case $ID in
|
case $ID in
|
||||||
ubuntu|debian)
|
ubuntu|debian)
|
||||||
DISPLAY_STRING="Environment=DISPLAY=$DISPLAY"
|
DISPLAY_STRING="Environment=XAUTHORITY=$XAUTHORITY"
|
||||||
DISPLAY_STRING+=$'\n'"Environment=XAUTHORITY=$XAUTHORITY"
|
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
DISPLAY_STRING=""
|
DISPLAY_STRING=""
|
||||||
@@ -1299,9 +1298,9 @@ service_jriver-mediacenter() {
|
|||||||
After=$GRAPHICAL_TARGET
|
After=$GRAPHICAL_TARGET
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=simple
|
||||||
$USER_STRING
|
$USER_STRING
|
||||||
$DISPLAY_STRING
|
$DISPLAY_STRING
|
||||||
Type=simple
|
|
||||||
Environment=DISPLAY=$DISPLAY
|
Environment=DISPLAY=$DISPLAY
|
||||||
ExecStart=/usr/bin/mediacenter$MC_MVERSION $*
|
ExecStart=/usr/bin/mediacenter$MC_MVERSION $*
|
||||||
KillMode=none
|
KillMode=none
|
||||||
|
|||||||
Reference in New Issue
Block a user