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

Aporia 0.4.0 on Win10: Menu Edit > Raw Preferences error (missing config.global.ini) #122

Open
tajmone opened this issue Sep 28, 2016 · 7 comments

Comments

@tajmone
Copy link

tajmone commented Sep 28, 2016

I've installed Aporia v0.4.0 via the Nim lang installer, under Windows 10 x64.

Selecting the menu entry Edit > Raw Preferences produces an error in Aporia's status bar: it complains that it cannot find the file config.global.ini in C:\Users\username\AppData\Roaming\Aporia.

So I've created manually that file, and now the error is gone. Myabe the setup wizard should create that folder and file at installation time, or Aporia itself could create them when this Menu is called for and the file is not found.

I was trying to edit Aporia interface to use English lang instead of the system locale (Italian). But it looks like its imposing Italian as a locale since it sees it as the OS locale — but translation into Italian is partial, so its a mixture of English and Italian menus.

I am still unsure how this Raw Preferences file should be used; I couldn't find any reference here on how to set it. Also, it seems that changing setting from Preferences menu doesn't affect the config.global.ini file. Where are preferences being saved?

@dom96
Copy link
Owner

dom96 commented Sep 28, 2016

In that version of Aporia the config was saved when Aporia was closed. I guess you only just launched it so the config didn't get created.

The preferences file isn't automatically reloaded, you need to close and reopen it.

@tajmone
Copy link
Author

tajmone commented Sep 28, 2016

You're right: after re-opening it the file is now populated with settings.

Has this changed in newer versions?

@dom96
Copy link
Owner

dom96 commented Sep 28, 2016

Only partially. The settings are saved more often but reloading is still not implemented.

@achesak
Copy link
Contributor

achesak commented Sep 29, 2016

That should be simple, how should reloading be implemented? Just a menu item under Raw Preferences?

@dom96
Copy link
Owner

dom96 commented Sep 30, 2016

This could be implemented as a temporary feature, in the long run Aporia should detect whether any of the files changed and ask to reload them automatically.

@tajmone
Copy link
Author

tajmone commented Sep 30, 2016

If I understand correctly, Aporia does read the config file at startup — and if none is found, it goes for default settings. At this point it could also create the missing file, without having to wait for shutdown in this special case.

Also, when detecting that the raw-config file is being saved (within Aporia) it should reparse it so to make manual changes take effect immediately.

Maybe these 2 feature additions could fill the gap until auto-detection of file changes is implemented.

@achesak
Copy link
Contributor

achesak commented Sep 30, 2016

Try downloading and compiling the latest version. For me Aporia (master branch, Linux) creates the default settings on startup, without showing any error message or requiring a close to save.

Also, when detecting that the raw-config file is being saved (within Aporia) it should reparse it so to make manual changes take effect immediately.

This is also already done.

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

3 participants