Compare commits
2 commits
a610d63088
...
e405ccdf2a
Author | SHA1 | Date | |
---|---|---|---|
e405ccdf2a | |||
fa46131ee5 |
2 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
curl.dev
|
curl.dev
|
||||||
|
xorg.libX11.dev
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ char *default_config_path(void) {
|
||||||
|
|
||||||
char *config_dir = getenv("XDG_CONFIG_HOME");
|
char *config_dir = getenv("XDG_CONFIG_HOME");
|
||||||
if (config_dir == NULL) {
|
if (config_dir == NULL) {
|
||||||
char *home = getenv("$HOME");
|
char *home = getenv("HOME");
|
||||||
if (asprintf(&config_dir, "%s/.config", home) < 0) {
|
if (asprintf(&config_dir, "%s/.config", home) < 0) {
|
||||||
fprintf(stderr, "error: failed formatting config dir (this shouldn't happen)");
|
fprintf(stderr, "error: failed formatting config dir (this shouldn't happen)");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
Loading…
Reference in a new issue