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

Sanitize application usage of its home directory #8

Open
MathRPG opened this issue Jul 16, 2023 · 0 comments
Open

Sanitize application usage of its home directory #8

MathRPG opened this issue Jul 16, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request standardization Standardization of the code and its documentation

Comments

@MathRPG
Copy link
Owner

MathRPG commented Jul 16, 2023

The application uses the project's home directory too much. Currently, it:

  • Creates a Erros folder to save logs of critical errors
  • Creates a policies folder for the source and bytecode of user-made scheduling and allocation policies
  • Creates a configuration.xml file, if none is present on startup

This makes code maintenance untidy, can introduce unwanted race conditions while running multiple instances of the application, and it is unknown whether this behavior works when the application is packaged into a .jar file.

Where possible, such dependencies on the OS's file system should be removed. Where not, there needs to be a well planned-out space for such files.

A preferrable alternative would be to encapsulate all of these behaviors on a folder, .ispd, and place this folder within the OS's default location for application configuration (i.e., %appdata% on Windows and .config on Linux).

Perhaps the user should be allowed to determine where the application folder would be located, or where specific things should be (i.e., select a location for custom policies). If this is done, this choice would probably still need to be preserved in a known place.

@MathRPG MathRPG added enhancement New feature or request standardization Standardization of the code and its documentation labels Jul 16, 2023
@MathRPG MathRPG self-assigned this Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request standardization Standardization of the code and its documentation
Projects
None yet
Development

No branches or pull requests

1 participant