Bug: Automatic models folder deletion after re-installation
dbouget opened this issue · comments
On Ubuntu and Mac, the .raidionics is not deleted during the installation process.
An automatic deletion of the Models folder should be performed, based on the software version, to prevent issues due to old models still existing on disk but likely not forward-compatible.
@dbouget I thought you added a fix for this when the program is launched the first time after installation?
For UNIX-based system, there isn't a way to remove this folder, AFAIK. At least on macOS there is no uninstall script. App bundles are deleted by deleting the bundle itself manually (right click + remove). For Ubuntu we could make such a method, but I do not see a point in doing it, if it doesnt work for macOS. Best is just to detect if the program is launched the first time, and then from the program we can delete the folder, which I believe you are doing now, or?
We can leave the automatic removal of the models folder upon installation for Windows only.
In general, there is an option in the Settings panel to manually request a purge of the models folder (by clicking the trash bin icon).