diff --git a/Userland/Services/WindowServer/WindowManager.cpp b/Userland/Services/WindowServer/WindowManager.cpp index 9f4fd5245f..5212baad15 100644 --- a/Userland/Services/WindowServer/WindowManager.cpp +++ b/Userland/Services/WindowServer/WindowManager.cpp @@ -1955,10 +1955,9 @@ bool WindowManager::update_theme(String theme_path, String theme_name) return false; Gfx::set_system_theme(new_theme); m_palette = Gfx::PaletteImpl::create_with_anonymous_buffer(new_theme); - auto wm_config = Core::ConfigFile::open("/etc/WindowServer.ini"); - wm_config->write_entry("Theme", "Name", theme_name); - wm_config->remove_entry("Background", "Color"); - wm_config->sync(); + m_config->write_entry("Theme", "Name", theme_name); + m_config->remove_entry("Background", "Color"); + m_config->sync(); invalidate_after_theme_or_font_change(); return true; }