aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-06-05 05:30:38 -0400
committerJesse Luehrs <doy@tozt.net>2016-06-05 05:30:38 -0400
commit672aedc1a6495da6123ad70b4cc77dbbedc100a3 (patch)
treeb6c45366717b410c2dc2d07264369b413dda91cb /src/util.c
parentb8196f0244d2a0b7adebe8d35182a071493eddf5 (diff)
downloadrunes-672aedc1a6495da6123ad70b4cc77dbbedc100a3.tar.gz
runes-672aedc1a6495da6123ad70b4cc77dbbedc100a3.zip
allow more easily running a development version alongside a real one
this just changes the window class (so that i can make the development version use floating windows while not screwing up the layout for my real terminals) and the runesd socket location (so that i can test runesd at all while i'm already running a real runesd).
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index c663710..f9ce286 100644
--- a/src/util.c
+++ b/src/util.c
@@ -36,13 +36,13 @@ char *runes_get_daemon_socket_name()
runtime_dir = getenv("XDG_RUNTIME_DIR");
if (runtime_dir) {
- runes_sprintf_dup(&socket_dir, "%s/runes", runtime_dir);
+ runes_sprintf_dup(&socket_dir, "%s/"RUNES_PROGRAM_NAME, runtime_dir);
}
else {
- runes_sprintf_dup(&socket_dir, "%s/.runes", home);
+ runes_sprintf_dup(&socket_dir, "%s/."RUNES_PROGRAM_NAME, home);
}
- runes_sprintf_dup(&socket_file, "%s/runesd", socket_dir);
+ runes_sprintf_dup(&socket_file, "%s/"RUNES_PROGRAM_NAME"d", socket_dir);
free(socket_dir);
return socket_file;