Temp folder issues

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, xnview

Post Reply
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Temp folder issues

Post 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.
User avatar
xnview
Author of XnView
Posts: 46845
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Temp folder issues

Post by xnview »

i don't use temp folder, perhaps it's ffmpeg if you use it
Pierre.
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: Temp folder issues

Post 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.
User avatar
xnview
Author of XnView
Posts: 46845
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Temp folder issues

Post 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
Pierre.
jadO
Posts: 490
Joined: Wed Apr 29, 2015 6:36 am

Re: Temp folder issues

Post 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.
meteorquake
Posts: 78
Joined: Wed Sep 13, 2023 9:37 am

Re: Temp folder issues

Post 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"
Tup3x
Posts: 9
Joined: Sun Jun 28, 2015 10:30 am
Location: Finland

Re: Temp folder issues

Post 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).
meteorquake
Posts: 78
Joined: Wed Sep 13, 2023 9:37 am

Re: Temp folder issues

Post 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.
User avatar
user0
XnThusiast
Posts: 2587
Joined: Sat May 09, 2015 9:37 am

Re: Temp folder issues

Post by user0 »

Post Reply