From c98f888cb6f5bdd190f9bb88e7ebeb40cd289a90 Mon Sep 17 00:00:00 2001 From: fbt Date: Fri, 27 Nov 2026 16:52:50 +0000 Subject: [PATCH] this is a bit more convenient Signed-off-by: fbt --- ssm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ssm b/ssm index 70c1406..120eedf 100755 --- a/ssm +++ b/ssm @@ -669,14 +669,17 @@ if (( $UID )); then rundir = "$XDG_RUNTIME_DIR/ssm" logdir = "$HOME/log/ssm" cgroup_home = "/sys/fs/cgroup/user/$UID/ssm" - cfg_file = "$XDG_CONFIG_HOME/ssm/ssm.conf" + cfg_dir = "$XDG_CONFIG_HOME/ssm" else rundir = '/run/ssm' logdir = '/var/log/ssm' cgroup_home = "/sys/fs/cgroup/ssm" - cfg_file = '/etc/ssm/ssm.conf' + cfg_dir = '/etc/ssm' fi +# Hardcoded name of the config itself, fuck it +cfg_file = "$cfg_file/ssm.conf" + ## Figure out our full path case "$0" in (/*) _self = "$0";;