|
| 1 | +diff --git a/cecd/data/cecd.service b/cecd/data/cecd.service |
| 2 | +index 8953d3a..c518bbf 100644 |
| 3 | +--- a/cecd/data/cecd.service |
| 4 | ++++ b/cecd/data/cecd.service |
| 5 | +@@ -5,7 +5,7 @@ Description=Consumer Electronics Control (CEC) Daemon |
| 6 | + Type=notify-reload |
| 7 | + BusName=com.steampowered.CecDaemon1 |
| 8 | + Environment=RUST_LOG=info |
| 9 | +-ExecStart=/usr/bin/cecd -e |
| 10 | ++ExecStart=@out@/bin/cecd -e |
| 11 | + |
| 12 | + [Install] |
| 13 | + WantedBy=graphical-session.target |
| 14 | +diff --git a/cecd/data/com.steampowered.CecDaemon1.service b/cecd/data/com.steampowered.CecDaemon1.service |
| 15 | +index fd823f1..9e1251b 100644 |
| 16 | +--- a/cecd/data/com.steampowered.CecDaemon1.service |
| 17 | ++++ b/cecd/data/com.steampowered.CecDaemon1.service |
| 18 | +@@ -1,4 +1,4 @@ |
| 19 | + [D-BUS Service] |
| 20 | + Name=com.steampowered.CecDaemon1 |
| 21 | +-Exec=/bin/false |
| 22 | ++Exec=@coreutils@/bin/false |
| 23 | + SystemdService=cecd.service |
| 24 | +diff --git a/cecd/src/config.rs b/cecd/src/config.rs |
| 25 | +index 84d3924..237bd92 100644 |
| 26 | +--- a/cecd/src/config.rs |
| 27 | ++++ b/cecd/src/config.rs |
| 28 | +@@ -165,7 +165,7 @@ async fn read_config_directory<P: AsRef<Path> + Sync + Send>( |
| 29 | + |
| 30 | + pub(crate) async fn read_default_config() -> Result<Config> { |
| 31 | + let mut builder = ConfigBuilder::<AsyncState>::default(); |
| 32 | +- let system_config_path = PathBuf::from("/usr/share/cecd"); |
| 33 | ++ let system_config_path = PathBuf::from("@out@/share/cecd"); |
| 34 | + let etc_config_path = PathBuf::from("/etc/cecd"); |
| 35 | + let mut config_paths = vec![system_config_path, etc_config_path]; |
| 36 | + if let Some(home) = BaseDirectories::new().get_config_home() { |
0 commit comments