summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2021-08-21 16:14:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-22 01:32:25 +0200
commit938051feb8d9340657251082f3fd4abffd57b813 (patch)
tree7d71e8c592b4915dcb4930fde8ba6739f60450f1 /Userland/Libraries/LibGUI
parent54bbe52b5143954dcdb700207de43343e5102ab8 (diff)
downloadserenity-938051feb8d9340657251082f3fd4abffd57b813.zip
Everywhere: Use Core::ConfigFile::AllowWriting::Yes to allow writing
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r--Userland/Libraries/LibGUI/Desktop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Desktop.cpp b/Userland/Libraries/LibGUI/Desktop.cpp
index ee4b56d530..90c05247d1 100644
--- a/Userland/Libraries/LibGUI/Desktop.cpp
+++ b/Userland/Libraries/LibGUI/Desktop.cpp
@@ -59,7 +59,7 @@ bool Desktop::set_wallpaper(const StringView& path, bool save_config)
auto ret_val = WindowServerConnection::the().wait_for_specific_message<Messages::WindowClient::SetWallpaperFinished>()->success();
if (ret_val && save_config) {
- RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("WindowManager");
+ RefPtr<Core::ConfigFile> config = Core::ConfigFile::get_for_app("WindowManager", Core::ConfigFile::AllowWriting::Yes);
dbgln("Saving wallpaper path '{}' to config file at {}", path, config->filename());
config->write_entry("Background", "Wallpaper", path);
config->sync();