Compare commits

...

2 commits

Author SHA1 Message Date
e405ccdf2a
I'm so sorry krizej 2024-02-14 15:47:08 +01:00
fa46131ee5
add libx11 to devshell 2024-02-14 15:46:32 +01:00
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@
buildInputs = with pkgs; [ buildInputs = with pkgs; [
curl.dev curl.dev
xorg.libX11.dev
]; ];
}; };
} }

View file

@ -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);