I remember that being a new feature from couple of months ago, so it’s definitely new and was touted as a feature. I’m not sure how to get the old behavior back, though.
The behaviour that I observe is that Image Viewer always opens the Pictures folder and always displays the first alphabetical file (of a supported type e.g. .jpg). It does not appear to remember either the image that I last looked at or the directory that contains that image. (This is, in general, a good thing from a privacy point of view.) So the answer is: Keep your Pictures folder free of images. However even that then leads to a rather unpleasant error message
No images found in "file:///home/purism/Pictures".
So I guess the hack answer would be … create a “blank” image, for your definition of blank, and put it in Pictures and call it !!!blank.png (where you can replace ! in that filename with a space character but the forum software won’t let me do that - but even if you leave the exclamation marks as they are, it will basically work).
The above discussion only applies if Image Viewer is invoked from the home screen. If you use the Files application and then get Files to invoke Image Viewer in order to view a listed file that is of an image type then Image Viewer will just open the file that Files wants it to open. (In other words, this is the difference between eog and eog some-image-file )
Example file follows:
Example file is above this line.
This only started after the last update/upgrade. Yes, it had been a while. But to get back to a privacy window, unupate and unupgrade
I just opened Image Viewer. Do you remember my other problem where I could not get any items to show under Categories in PureOS Store? Well, when I open Image Viewer, it reminded me that I took a screen cap of the PureOS Store landing page. Guess what is showing now when ever I direct start Image Viewer from it’s desktop icon. Arrrrggg! It hates me.
I’ll take a screencap of the desktop and save that as filename using your suggestion. Then, when I click Image Viewer on the desktop, I’ll be back here asking why Image Viewer won’t load any more and non of the icons work any more.
I’ll just make one blank black screen with dark grey fonts saying “This blank page was left here on purpose.” I have seen paper forms that do that.
Ah, got me again with the librem5 custom version of the .desktop file.
So my previous post is only part of the story.
If this problem were bugging me personally, I would hack eog.sh so that if the directory is empty of suitable images then I would suppress it, at least when the default directory (Pictures) is being applied. I might also be tempted to give the user some hack-configured mechanism to suppress the default being applied even when non-empty.
Anyway, hopefully @Sharon is happy with your suggested command.
I have @dos suggestion saved to my L5 folder - on another device.
It’s why I usually hold off on updates/upgrades until the full beta test has feedback about any issue/s.