1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:47:46 +00:00

WindowServer: Move configuration file to /etc/WindowServer.ini

This was in the /etc/WindowServer/ directory which had nothing else in
it, so let's just get rid of the directory and move this up one step.
This commit is contained in:
Andreas Kling 2021-04-29 21:40:59 +02:00
parent b88b19272e
commit def1f1444a
9 changed files with 13 additions and 13 deletions

View file

@ -175,7 +175,7 @@ void DisplaySettingsWidget::create_frame()
void DisplaySettingsWidget::load_current_settings()
{
auto ws_config(Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini"));
auto ws_config(Core::ConfigFile::open("/etc/WindowServer.ini"));
auto wm_config = Core::ConfigFile::get_for_app("WindowManager");
/// Wallpaper path ////////////////////////////////////////////////////////////////////////////
@ -253,7 +253,7 @@ void DisplaySettingsWidget::load_current_settings()
void DisplaySettingsWidget::send_settings_to_window_server()
{
// Store the current screen resolution and scale factor in case the user wants to revert to it.
auto ws_config(Core::ConfigFile::open("/etc/WindowServer/WindowServer.ini"));
auto ws_config(Core::ConfigFile::open("/etc/WindowServer.ini"));
Gfx::IntSize current_resolution;
current_resolution.set_width(ws_config->read_num_entry("Screen", "Width", 1024));
current_resolution.set_height(ws_config->read_num_entry("Screen", "Height", 768));