From f178bfb43c056336c16465430688b26b5cfb16b6 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 11 Jan 2021 12:08:15 +0100 Subject: [PATCH] Use more generic test image path --- src/ui/window.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ui/window.c b/src/ui/window.c index 9aef04b5..a1f5c972 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1963,11 +1963,15 @@ win_insert_last_read_position_marker(ProfWin* window, char* id) void win_pictest(ProfWin* window) { - GdkPixbuf *file = gdk_pixbuf_new_from_file ("/home/michael/Pictures/test.png", NULL); + gchar *path = get_expanded_path("~/test.png"); + GdkPixbuf *file = gdk_pixbuf_new_from_file (path, NULL); if (file == NULL) { win_println(window, THEME_ERROR, "!", "pictest"); + g_free(path); return; } + g_free(path); + ChafaCanvasConfig *config; ChafaCanvas *canvas; ChafaSymbolMap *symbol_map;