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

How to add settings files with read/write access into USER_DATA directory upon install or first run? #11

Open
sairus7 opened this issue Jun 8, 2024 · 1 comment

Comments

@sairus7
Copy link

sairus7 commented Jun 8, 2024

I have app written with CImGui.jl, which keeps current window layout in sync with imgui.ini file stored in current directory (or in any other predefined directory). When the app is developed, pwd() is the project folder. After app install, pwd() changes to C:\Windows\system32. So how should set windows.ini file extracted into USER_DATA?

@sairus7 sairus7 changed the title How to add settings files with read/write access into "USER_DATA" directory upon install or first run? How to add settings files with read/write access into USER_DATA directory upon install or first run? Jun 8, 2024
@JanisErdmanis
Copy link
Member

The USER_DATA directory is designed to be used exclusively by the launched application. It sounds like what you could do is put imgui.ini in the application assets directory and copy it into USER_DATA directory launch if it is nonexistent. The application assets location can be derived from Sys.BINDIR.

Regarding pwd() pointing to C:\Windows\system32, you can change it with cd(USER_DATA). All those changes fit well within an init.jl recipe file.

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

No branches or pull requests

2 participants