Hey Russell,
Thank you for your assistance in the matter.
I did try a variety of chromium-args and I definitely tried the --user-data-dir flag before posting here.
My hope was that if I can't keep it from writing the app_name directory into \\Local\AppData, then at least I could control where it would be written.
However, even when using the --user-data-dir flag, it still writes the CrashPad directory (see my attachment for before and after flag usage) into the same folder, and then it writes everything else to the specified location with the --user-data-dir.
The --incognito flag suggestion did get me thinking.
I agree with you, I don't see it listed in the available flags in NW.js but I tried to get Chrome to run after deleting my Chrome directory from \\Local\AppData\Google.
I made a copy prior to that experiment.
Even when launching chrome with the --incognito flag, it still writes to the Chrome directory.
Maybe not the cookies, etc. that the incognito flag handles, but it does still write the Chrome directory and a large number of sub-directories.
If you have any suggestions on how you're deleting your bootstrap_created_tmpdir I'd be interested. Or even more documentation to read through.
To All
If anyone is reading this thread (Roger ::fingers crossed::), why does NW.js write the 'app_name' folder to the \\Local\AppData\app_name at all like Chrome, or more specifically, why does it need to write anywhere for that matter like Chrome...?
Everything in my app is packaged together, built, and in a completely separate directory. Not to mention it is a desktop application and I store my own state information in a Roaming profile, as well as logging data.
I don't think an app should need to write anything to that \\Local\AppData space or anywhere else for that matter because even though NW uses Chrome, the app itself shouldn't need to use the same directory structure.
Any explanation as to why NW.js does this would be greatly appreciated.
Final Note:
The ability to either (a) prevent the creation of this app_name directory from being created or (b) automatically delete the app_name directory after shutdown, perhaps using some kind of flag, would be amazing.
I'm really hoping for (a) but I'd take (b) at this point as a workaround.
Thank you.