aboutsummaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/config.c b/config.c
index c3ab61e2..1d9f200b 100644
--- a/config.c
+++ b/config.c
@@ -2905,7 +2905,8 @@ config_font_list_clone(struct config_font_list *dst,
bool
config_load(struct config *conf, const char *conf_path,
user_notifications_t *initial_user_notifications,
- config_override_t *overrides, bool errors_are_fatal)
+ config_override_t *overrides, bool errors_are_fatal,
+ bool as_server)
{
bool ret = false;
enum fcft_capabilities fcft_caps = fcft_capabilities();
@@ -2914,7 +2915,7 @@ config_load(struct config *conf, const char *conf_path,
.term = xstrdup(FOOT_DEFAULT_TERM),
.shell = get_shell(),
.title = xstrdup("foot"),
- .app_id = xstrdup("foot"),
+ .app_id = (as_server ? xstrdup("footclient") : xstrdup("foot")),
.word_delimiters = xc32dup(U",│`|:\"'()[]{}<>"),
.size = {
.type = CONF_SIZE_PX,
@@ -3348,7 +3349,7 @@ UNITTEST
user_notifications_t nots = tll_init();
config_override_t overrides = tll_init();
- bool ret = config_load(&original, "/dev/null", &nots, &overrides, false);
+ bool ret = config_load(&original, "/dev/null", &nots, &overrides, false, false);
xassert(ret);
struct config *clone = config_clone(&original);