geeqie icon indicating copy to clipboard operation
geeqie copied to clipboard

`geeqie /path/to/image.jpg` flashes first image in directory

Open waptaff opened this issue 3 months ago • 0 comments

Setup (please complete the following information):

  • Distribution: Gentoo
  • Geeqie version [geeqie --version]: Geeqie 2.6.1 GTK3

Describe the bug Since 2.6.1, running geeqie /path/to/image.jpg in a directory with multiple images flashes the first image in the directory then shows the requested image, instead of directly showing the requested file. This slows down geeqie as it uselessly decodes the first image (and feels wrong).

To reproduce

  • Create a directory /tmp/foo with files 0.jpg, 1.jpg, 2.jpg.
  • Run geeqie /tmp/foo/1.jpg.
  • See 0.jpg flash before 1.jpg is displayed.

It might help if image files are large to induce a longer rendering time.

Expected behavior Requested image is shown without flashing any other image before.

Additional context This was not the case in geeqie version 2.5 nor any previous version.

Running strace -o /tmp/geeqie.strace -s 2048 geeqie /path/to/image.jpg then looking at /tmp/geeqie.strace shows openat() is called for the first image in the directory.

waptaff avatar Nov 07 '25 19:11 waptaff