Page 1 of 1

Temp folder issues

Posted: Wed Oct 26, 2016 4:28 am
by jadO
I noticed that XnViewMp uses the system temp folder for thumbnailing. For portable version I don't think this is a good decision. It should use a temp folder in application directory.
Still noticed that the thumbnails for videos get stored there. However they do not get cleaned properly and stay there some times.
Also noted some mysterious lock files from XnViewMP in that folder which never get deleted.

Re: Temp folder issues

Posted: Wed Oct 26, 2016 8:29 am
by xnview
i don't use temp folder, perhaps it's ffmpeg if you use it

Re: Temp folder issues

Posted: Wed Oct 26, 2016 10:47 am
by jadO
xnview wrote:i don't use temp folder, perhaps it's ffmpeg if you use it
I don't think that is correct. In my temp folder I see:

qtsingleapp-xnview-e789-1-lockfile what ever this means

and

a lot of files like "xnview_E14008.png" which are the single thumbnail images.

FFMPEG is not installed and portables as well, so using the system temp folders is bad. But even more worse is that the items do not get cleaned from the temp folder.

Re: Temp folder issues

Posted: Wed Oct 26, 2016 12:10 pm
by xnview
jadO wrote: qtsingleapp-xnview-e789-1-lockfile what ever this means
From QT api, so i can't change that
a lot of files like "xnview_E14008.png" which are the single thumbnail images.
ok, created by ffmpeg, should be deleted by QT api

Re: Temp folder issues

Posted: Wed Oct 26, 2016 12:21 pm
by jadO
xnview wrote:
jadO wrote: qtsingleapp-xnview-e789-1-lockfile what ever this means
From QT api, so i can't change that
a lot of files like "xnview_E14008.png" which are the single thumbnail images.
ok, created by ffmpeg, should be deleted by QT api
That't not good.

Re: Temp folder issues

Posted: Wed Nov 05, 2025 6:20 pm
by meteorquake
Although an old post I notice the same just now.

It seems to occur for me when using the Export function to preview... name format is the likes of "xnview_1762366641.png"

Re: Temp folder issues

Posted: Sat Nov 08, 2025 8:46 pm
by Tup3x
This has been annoyance for as long as I can remember. Every time you use the export functionality it creates those temp files. Ideally, it wouldn't even write those temp files in the first place and just keep it all in memory. At very least it should delete them instantly when not needed (app is closed, export view is closed).

Re: Temp folder issues

Posted: Sat Nov 08, 2025 9:09 pm
by meteorquake
I'd expect an ease-of-programming logic meant it was done that way.
However they certainly need to be cleaned up afterward.
In addition, I think there should be a custom temp path people can enter under Settings - Paths
For myself I generally redirect temp files of programs I use to ramdisk.

The whole temp files in windows generally is very badly designed with most files having no value to retain on close-down with a few mixed in that might (such as installers), meaning 99% of temp files are needlessly written to disk when many people nowadays have large amounts of free ram. For anyone in a situation of needing to be security conscious, this is definitely a security issue since temp files on a normal disk will leave a permanent unlocked trace even if deleted.

Re: Temp folder issues

Posted: Sun Nov 09, 2025 4:27 am
by user0