From 724b16b42a2b3ece94035906b48e193986c3ea84 Mon Sep 17 00:00:00 2001
From: Dima Kogan <>
Date: Sun, 9 Jun 2019 10:51:57 +0100
Subject: [PATCH] Fix #678: The image overlay should show the full image path,
not just the filename
https://github.com/BestImageViewer/geeqie/issues/678
Additional parameter path in OSD
---
doc/docbook/GuideOptionsOSD.xml | 4 ++++
src/image-overlay.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/doc/docbook/GuideOptionsOSD.xml b/doc/docbook/GuideOptionsOSD.xml
index c90203cf..042cd172 100644
--- a/doc/docbook/GuideOptionsOSD.xml
+++ b/doc/docbook/GuideOptionsOSD.xml
@@ -24,6 +24,10 @@
name
Filename of the picture
+
+ path
+ Full path, including filename, of the picture
+
collection
Name of the collection
diff --git a/src/image-overlay.c b/src/image-overlay.c
index e94d7529..6116b5a1 100644
--- a/src/image-overlay.c
+++ b/src/image-overlay.c
@@ -307,6 +307,7 @@ static GdkPixbuf *image_osd_info_render(OverlayStateData *osd)
osd_template_insert(vars, "number", g_strdup_printf("%d", n), OSDT_NO_DUP);
osd_template_insert(vars, "total", g_strdup_printf("%d", t), OSDT_NO_DUP);
osd_template_insert(vars, "name", (gchar *) name, OSDT_NONE);
+ osd_template_insert(vars, "path", (gchar *) image_get_path(imd), OSDT_NONE);
osd_template_insert(vars, "date", imd->image_fd ? ((gchar *) text_from_time(imd->image_fd->date)) : "", OSDT_NONE);
osd_template_insert(vars, "size", imd->image_fd ? (text_from_size_abrev(imd->image_fd->size)) : g_strdup(""), OSDT_FREE);
osd_template_insert(vars, "zoom", image_zoom_get_as_text(imd), OSDT_FREE);
--
2.20.1