Fix CLI note & OpenRC service not using config directory option

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2024-08-03 08:36:26 +02:00
parent 57d5d7497b
commit 8995c590eb
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -95,7 +95,7 @@ pub fn main() !void {
if (res.args.help != 0) {
try clap.help(stderr, clap.Help, &params, .{});
_ = 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) {