From ab5ca0cf8b4f803a8075c79939a5e9d466a9c0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Mon, 26 Oct 2020 23:08:28 +0100 Subject: [PATCH] Elaborate on avoiding XDG_RUNTIME_DIR --- wdmtg.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wdmtg.c b/wdmtg.c index 4d819c8..d958968 100644 --- a/wdmtg.c +++ b/wdmtg.c @@ -744,7 +744,9 @@ main(int argc, char *argv[]) g_build_filename(g_get_user_data_dir(), PROJECT_NAME, NULL); g_mkdir_with_parents(data_path, 0755); - // Bind to a control socket, also ensuring only one instance is running + // Bind to a control socket, also ensuring only one instance is running. + // We're intentionally not using XDG_RUNTIME_DIR so that what is effectively + // the database lock is right next to the database. gchar *socket_path = g_build_filename(data_path, "socket", NULL); int socket_fd = socket_init(socket_path); g_free(socket_path);