Print logging output consistently to stderr

This commit is contained in:
o9000
2017-09-01 18:11:35 +02:00
parent 61c61c8844
commit b7691afb8d
15 changed files with 53 additions and 52 deletions

View File

@@ -1839,7 +1839,7 @@ void load_desktop_file(const char *file, gboolean selected)
if (pixbuf)
g_object_unref(pixbuf);
} else {
printf("Could not load %s\n", file);
fprintf(stderr, "Could not load %s\n", file);
GdkPixbuf *pixbuf = load_icon(DEFAULT_ICON);
GtkTreeIter iter;
gtk_list_store_append(store, &iter);
@@ -1897,7 +1897,7 @@ void load_desktop_entry(const char *file, GList **entries)
DesktopEntry *entry = calloc(1, sizeof(DesktopEntry));
if (!read_desktop_file(file, entry))
printf("Could not load %s\n", file);
fprintf(stderr, "Could not load %s\n", file);
if (entry->hidden_from_menus) {
free(entry);
return;