|
|
|
@ -14,6 +14,7 @@ in the source distribution for its full text. |
|
|
|
#include <ctype.h> |
|
|
|
#include <ctype.h> |
|
|
|
#include <dirent.h> |
|
|
|
#include <dirent.h> |
|
|
|
#include <errno.h> |
|
|
|
#include <errno.h> |
|
|
|
|
|
|
|
#include <pwd.h> |
|
|
|
#include <stdbool.h> |
|
|
|
#include <stdbool.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdlib.h> |
|
|
|
@ -194,6 +195,12 @@ void PCPDynamicColumns_init(PCPDynamicColumns* columns) { |
|
|
|
const char* home = getenv("HOME"); |
|
|
|
const char* home = getenv("HOME"); |
|
|
|
char* path; |
|
|
|
char* path; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!xdgConfigHome && !home) { |
|
|
|
|
|
|
|
const struct passwd* pw = getpwuid(getuid()); |
|
|
|
|
|
|
|
if (pw) |
|
|
|
|
|
|
|
home = pw->pw_dir; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
columns->table = Hashtable_new(0, true); |
|
|
|
columns->table = Hashtable_new(0, true); |
|
|
|
|
|
|
|
|
|
|
|
/* developer paths - PCP_HTOP_DIR=./pcp ./pcp-htop */ |
|
|
|
/* developer paths - PCP_HTOP_DIR=./pcp ./pcp-htop */ |
|
|
|
|