-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Base: Some cleanups by moving /res folders to /usr/share and removing some useless config files #25606
base: master
Are you sure you want to change the base?
Conversation
I'm not entirely sure about the motivation here, but leaving that bit aside, I personally like having config files that specify the default behaviour instead of having them hidden in the code. |
The default values must are already be in the code, so the files are not needed. In the end we need to move all the files out of the anon home folder because it won't work when creating other users. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actually changes required on this PR, but we shouldn't merge this until the Discord bot is updated.
@@ -74,7 +74,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
{ | |||
TRY(Core::System::pledge("stdio rpath")); | |||
|
|||
StringView path = "/res/fortunes.json"sv; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing this will also require an update to the Discord bot.
Ah good point, when I've time I'll look into it |
These commits clean up the
/res
and/home/anon/.config
folders a bit.All application specific non graphic files need to exist in
/usr/share
and not in/res
so I moved them. Only/res/ladybird
remains but that folder is special in the build system and would require a larger refactor.Also where there some all default config files which could easily be removed, they are created on the fly when settings are changed.
Some files in
/home/anon/.config
to be moved to a more global dir, for better multi user support but I'll look into that in the future.