config: Don't print warning when XDG_CONFIG_HOME isn't set

According to the spec, it's ok for this not to be set and just means that
we should default to $HOME/.config.
dev
Kristian Høgsberg 13 years ago
parent 668dd56918
commit fc32c394e7
  1. 3
      clients/config.c
  2. 2
      clients/desktop-shell.c

@ -147,9 +147,6 @@ config_file_path(const char *name)
config_dir = getenv("XDG_CONFIG_HOME"); config_dir = getenv("XDG_CONFIG_HOME");
if (!config_dir) { if (!config_dir) {
fprintf(stderr, "XDG_CONFIG_HOME is not set,"
" falling back to $HOME/.config\n");
home_dir = getenv("HOME"); home_dir = getenv("HOME");
if (!home_dir) { if (!home_dir) {
fprintf(stderr, "HOME is not set, using cwd.\n"); fprintf(stderr, "HOME is not set, using cwd.\n");

@ -370,8 +370,6 @@ int main(int argc, char *argv[])
&desktop); &desktop);
free(config_file); free(config_file);
printf("panel color: %08x\n", key_panel_color);
desktop_shell_set_panel(desktop.shell, desktop_shell_set_panel(desktop.shell,
window_get_wl_surface(desktop.panel->window)); window_get_wl_surface(desktop.panel->window));

Loading…
Cancel
Save