Skip to content

geeqie /path/to/image.jpg flashes first image in directory #2011

@waptaff

Description

@waptaff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions