From 6bed905159542c4d31da0d76765b71a63720f15f Mon Sep 17 00:00:00 2001 From: Mars-Wave <57585293+Mars-Wave@users.noreply.github.com> Date: Mon, 23 Feb 2026 20:46:49 +0100 Subject: [PATCH] Keep a symlinked kanshi config a symlink --- src/store.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/store.c b/src/store.c index a63ae82..18db58e 100644 --- a/src/store.c +++ b/src/store.c @@ -4,6 +4,7 @@ #include #include +#include #include #include "wdisplays.h" @@ -469,6 +470,10 @@ static char *update_config(const char *text, struct wl_list *outputs, static bool write_config(const char *path, const char *contents, GError **error) { + g_autofree char *real_path = realpath(path, NULL); + if (real_path != NULL) { + path = real_path; + } g_autofree char *dir = g_path_get_dirname(path); if (g_mkdir_with_parents(dir, 0755) != 0) { int err = errno;