diff options
author | gramanas <anastasis.gramm2@gmail.com> | 2018-11-10 22:47:03 +0200 |
---|---|---|
committer | gramanas <anastasis.gramm2@gmail.com> | 2018-11-10 22:47:03 +0200 |
commit | 2638802ccd0d0776ebf1867181d4e3950a147074 (patch) | |
tree | cc535cc46c41d5dd347a7630f316cf1c84d00045 /src/actionhelper.c | |
parent | 6d77eb748a6b15b9f473ab86371bfa474898cef1 (diff) | |
download | ck-2638802ccd0d0776ebf1867181d4e3950a147074.tar.gz ck-2638802ccd0d0776ebf1867181d4e3950a147074.tar.bz2 ck-2638802ccd0d0776ebf1867181d4e3950a147074.zip |
Home dir
Diffstat (limited to 'src/actionhelper.c')
-rw-r--r-- | src/actionhelper.c | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |