analogdevicesinc / adi-kuiper-imager

Other
6 stars 0 forks source link

Imager gets the OS list JSON from cached data, instead of retrieving it from SWDownloads for the ADI Kuiper Image option [Windows] #61

Open bia1708 opened 5 months ago

bia1708 commented 5 months ago

With the Windows installation of Kuiper Imager, the JSON storing all ADI Kuiper Images is not retrieved every time the app is opened, but instead it is only retrieved once, when the app is first installed and opened. That is because the Images JSON is stored in the cache memory of the device. The location of this cache memory is C:\Users\<username>\AppData\Local\Analog Devices Inc. This is the relevant line for setting the cache directory for the OS list. Uninstalling the app does not solve this issue, the cache directory is not removed at uninstall. After reinstalling the app, Kuiper Imager uses the cached data, instead of getting the OS list JSON again. If the app is installed when there is a faulty JSON on SWDownloads, the "ADI Kuiper Image" option is not clickable at all.

As far as I can tell, this issue is not present for the Linux installation. The logs show a GET request being performed every time the "ADI Kuiper Image" option is clicked. This issue may be present for the "ADI 3D ToF software suite" as well (not tested).