From 2638802ccd0d0776ebf1867181d4e3950a147074 Mon Sep 17 00:00:00 2001 From: gramanas Date: Sat, 10 Nov 2018 22:47:03 +0200 Subject: Home dir --- src/actionhelper.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/actionhelper.c') diff --git a/src/actionhelper.c b/src/actionhelper.c index d1891c9..1d2a518 100644 --- a/src/actionhelper.c +++ b/src/actionhelper.c @@ -191,6 +191,11 @@ int init_create_config_file(UserOpt *opt) { strcat(tmp, "\n"); fputs(tmp, f); + strcpy(tmp, "home_dir = "); + strcat(tmp, getenv("HOME")); + strcat(tmp, "\n"); + fputs(tmp, f); + fclose(f); return 0; } -- cgit v1.2.3