1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 20:55:07 +00:00
serenity/Userland/Services/ConfigServer
kleines Filmröllchen 0fd09b2381 LibCore: Automatically create config directories if necessary
If the .config directory (or its children, like lib) was deleted,
ConfigFile would crash because it would try to open or create a file in
a directory that didn't exist. Therefore, for user and library configs
(but not system configs), ensure that the parent directories exist. This
allows the user to delete the entire .config folder and all apps still
work. (Except those which can't handle missing config. That's a separate
issue though.)

Fixes #13555

Note: Some changes to pledges and unveils are necessary for this to
work. The only one who can recreate .config at the moment is
ConfigServer, as others probably don't pledge the user home directory.
2022-04-11 00:08:48 +02:00
..
CMakeLists.txt Userland: Rename IPC ClientConnection => ConnectionFromClient 2022-02-25 22:35:12 +01:00
ConfigClient.ipc ConfigServer: Add method and notification for key removal 2021-11-13 12:55:46 +01:00
ConfigServer.ipc ConfigServer: Add methods to list groups and keys 2021-11-18 09:08:51 +01:00
ConnectionFromClient.cpp Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
ConnectionFromClient.h Services: Use default constructors/destructors 2022-03-24 20:09:26 -07:00
main.cpp LibCore: Automatically create config directories if necessary 2022-04-11 00:08:48 +02:00