From 8995c590ebe3ebc11f48e440bdb9f2ddd1524873 Mon Sep 17 00:00:00 2001 From: AnErrupTion Date: Sat, 3 Aug 2024 08:36:26 +0200 Subject: [PATCH] Fix CLI note & OpenRC service not using config directory option Signed-off-by: AnErrupTion --- res/ly-openrc | 2 +- src/main.zig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/ly-openrc b/res/ly-openrc index 81da5d8..83ac7b1 100644 --- a/res/ly-openrc +++ b/res/ly-openrc @@ -20,7 +20,7 @@ then fi ## Get the tty from the conf file -CONFTTY=$(cat /etc/ly/config.ini | sed -n 's/^tty.*=[^1-9]*// p') +CONFTTY=$(cat $CONFIG_DIRECTORY/ly/config.ini | sed -n 's/^tty.*=[^1-9]*// p') ## The execution vars # If CONFTTY is empty then default to $DEFAULT_TTY diff --git a/src/main.zig b/src/main.zig index cf2c2ba..4b64132 100644 --- a/src/main.zig +++ b/src/main.zig @@ -95,7 +95,7 @@ pub fn main() !void { if (res.args.help != 0) { try clap.help(stderr, clap.Help, ¶ms, .{}); - _ = try stderr.write("Note: if you want to configure Ly, please check the config file, which is usually located at /etc/ly/config.ini.\n"); + _ = try stderr.write("Note: if you want to configure Ly, please check the config file, which is located at " ++ build_options.config_directory ++ "/ly/config.ini.\n"); std.process.exit(0); } if (res.args.version != 0) {