The application uses several different directories.
The system might need temporary storage place, too. This area is normally transparent for the user. For the normal operation, however, the user needs the corresponding access rights and storage quota on that device. The system sets it up automatically, asking for the system-wide temporary subdirectory and prepares a subdirectory (using the name and version of the tool) in it.
Normally, the system provides a system-wide area for this goal. If that area can be used, the program creates a separate subdirectory in it, i.e. the temporary data will be stored in
TempDir/PackageName
If for any reason, that area is not available for the program, it creates a subdirectory in the user's home directory, i.e. in such a case the temporary files go in subdirectory
UserHome/PACKAGE_NAME/temp