From 67b60e645c5519b1b1f54ec1b0c7dbd5dfb04bcf Mon Sep 17 00:00:00 2001
From: Koichiro IWAO
Date: Wed, 23 Sep 2020 11:23:50 +0900
Subject: [PATCH] Replace some more hard-coded /etc with sysconfdir
---
unix/vncserver/vncserver.in | 2 +-
unix/vncserver/vncserver@.service.in | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/unix/vncserver/vncserver.in b/unix/vncserver/vncserver.in
index 25fbbd31..9583bf45 100755
--- a/unix/vncserver/vncserver.in
+++ b/unix/vncserver/vncserver.in
@@ -38,7 +38,7 @@
$vncUserDir = "$ENV{HOME}/.vnc";
$vncUserConfig = "$vncUserDir/config";
-$vncSystemConfigDir = "/etc/tigervnc";
+$vncSystemConfigDir = "@CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc";
$vncSystemConfigDefaultsFile = "$vncSystemConfigDir/vncserver-config-defaults";
$vncSystemConfigMandatoryFile = "$vncSystemConfigDir/vncserver-config-mandatory";
diff --git a/unix/vncserver/vncserver@.service.in b/unix/vncserver/vncserver@.service.in
index 584ecf4b..3e90f098 100644
--- a/unix/vncserver/vncserver@.service.in
+++ b/unix/vncserver/vncserver@.service.in
@@ -1,7 +1,7 @@
# The vncserver service unit file
#
# Quick HowTo:
-# 1. Add a user mapping to /etc/tigervnc/vncserver.users.
+# 1. Add a user mapping to @CMAKE_INSTALL_FULL_SYSCONFDIR@/tigervnc/vncserver.users.
# 2. Adjust the global or user configuration. See the
# vncsession(8) manpage for details. (OPTIONAL)
# 3. Run `systemctl enable vncserver@:.service`
--
2.39.5