summaryrefslogtreecommitdiff
path: root/Userland/Services/SystemServer/Service.cpp
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2021-10-23 19:15:01 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-25 23:38:28 +0200
commit3d855a801ba401a4b027e8a7cc3c1d4e59050806 (patch)
tree7333d5e12b00ec249f4b614385693ef393c1cc78 /Userland/Services/SystemServer/Service.cpp
parent8d13f6ddce54deca5ed9bff9af2a4d31bb290121 (diff)
downloadserenity-3d855a801ba401a4b027e8a7cc3c1d4e59050806.zip
SystemServer: Rename 'BootModes' config option to 'SystemModes'
Diffstat (limited to 'Userland/Services/SystemServer/Service.cpp')
-rw-r--r--Userland/Services/SystemServer/Service.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Services/SystemServer/Service.cpp b/Userland/Services/SystemServer/Service.cpp
index e4da86bf72..3431f07606 100644
--- a/Userland/Services/SystemServer/Service.cpp
+++ b/Userland/Services/SystemServer/Service.cpp
@@ -314,7 +314,7 @@ Service::Service(const Core::ConfigFile& config, const StringView& name)
m_working_directory = config.read_entry(name, "WorkingDirectory");
m_environment = config.read_entry(name, "Environment").split(' ');
- m_boot_modes = config.read_entry(name, "BootModes", "graphical").split(',');
+ m_system_modes = config.read_entry(name, "SystemModes", "graphical").split(',');
m_multi_instance = config.read_bool_entry(name, "MultiInstance");
m_accept_socket_connections = config.read_bool_entry(name, "AcceptSocketConnections");
@@ -366,14 +366,14 @@ void Service::save_to(JsonObject& json)
extra_args.append(arg);
json.set("extra_arguments", move(extra_args));
- JsonArray boot_modes;
- for (String& mode : m_boot_modes)
- boot_modes.append(mode);
- json.set("boot_modes", boot_modes);
+ JsonArray system_modes;
+ for (String& mode : m_system_modes)
+ system_modes.append(mode);
+ json.set("system_modes", system_modes);
JsonArray environment;
for (String& env : m_environment)
- boot_modes.append(env);
+ system_modes.append(env);
json.set("environment", environment);
JsonArray sockets;
@@ -406,5 +406,5 @@ void Service::save_to(JsonObject& json)
bool Service::is_enabled() const
{
extern String g_system_mode;
- return m_boot_modes.contains_slow(g_system_mode);
+ return m_system_modes.contains_slow(g_system_mode);
}