Using LTTNG_HOME environment variable if exists, with fallback to HOME
[lttng-tools.git] / src / bin / lttng / utils.c
index 94c4527d97ff293029f99dbdca79e3cbf6956caa..6041655ddda0f6eb42de5b829cb29688c11f1a24 100644 (file)
@@ -21,6 +21,7 @@
 #include <limits.h>
 
 #include <common/error.h>
+#include <common/utils.h>
 
 #include "conf.h"
 #include "utils.h"
@@ -36,7 +37,7 @@ char *get_session_name(void)
        char *path, *session_name = NULL;
 
        /* Get path to config file */
-       path = config_get_default_path();
+       path = utils_get_home_dir();
        if (path == NULL) {
                goto error;
        }
This page took 0.026703 seconds and 4 git commands to generate.