Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is the ini saved to Temp by default? #3

Open
Destroy666x opened this issue Aug 1, 2023 · 1 comment
Open

Why is the ini saved to Temp by default? #3

Destroy666x opened this issue Aug 1, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Destroy666x
Copy link

That folder is often cleared and thus, as the name suggests, temporary files should be there only. Config is not quite temporary.

I would recommend changing:

global iniFilePath := % Format("{1}/{2}.ini", A_Temp, A_ScriptName)

to for example:

global iniFilePath := % Format("{1}/{2}.ini", A_ScriptDir, A_ScriptName)

which would place the ini right next to the script.

Another idea would be to place it where configs usually go in Windows, so a new folder in %APPDATA%:

global iniFilePath := % Format("{1}/{2}/{2}.ini", A_AppData, A_ScriptName)
@tiuub tiuub self-assigned this Sep 19, 2023
@tiuub tiuub added the enhancement New feature or request label Sep 19, 2023
@tiuub
Copy link
Owner

tiuub commented Sep 19, 2023

Thank you, for your Request.

The TEMP directory is a leftover from testing.
I will implement your APPDATA solution in the next days.

Kind regards
tiuub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants