diff --git a/Base/etc/LookupServer.ini b/Base/etc/LookupServer.ini index b7185e689b3..410d02a9fa3 100644 --- a/Base/etc/LookupServer.ini +++ b/Base/etc/LookupServer.ini @@ -1,3 +1,3 @@ [DNS] Nameservers=1.1.1.1,1.0.0.1 -EnableServer=0 +EnableServer=false diff --git a/Base/etc/SystemServer.ini b/Base/etc/SystemServer.ini index b09354fdb4e..3a2a05a6eb2 100644 --- a/Base/etc/SystemServer.ini +++ b/Base/etc/SystemServer.ini @@ -6,77 +6,77 @@ User=anon [RequestServer] Socket=/tmp/portal/request SocketPermissions=600 -Lazy=1 +Lazy=true Priority=low User=anon SystemModes=text,graphical -MultiInstance=1 -AcceptSocketConnections=1 +MultiInstance=true +AcceptSocketConnections=true [FileSystemAccessServer] Socket=/tmp/portal/filesystemaccess SocketPermissions=660 -Lazy=1 +Lazy=true Priority=low User=anon SystemModes=text,graphical -MultiInstance=1 -AcceptSocketConnections=1 +MultiInstance=true +AcceptSocketConnections=true [WebContent] Socket=/tmp/portal/webcontent SocketPermissions=600 -Lazy=1 +Lazy=true User=anon SystemModes=graphical -MultiInstance=1 -AcceptSocketConnections=1 +MultiInstance=true +AcceptSocketConnections=true [ImageDecoder] Socket=/tmp/portal/image SocketPermissions=600 -Lazy=1 +Lazy=true User=anon SystemModes=graphical -MultiInstance=1 -AcceptSocketConnections=1 +MultiInstance=true +AcceptSocketConnections=true [WebSocket] Socket=/tmp/portal/websocket SocketPermissions=600 -Lazy=1 +Lazy=true Priority=low User=anon SystemModes=text,graphical -MultiInstance=1 -AcceptSocketConnections=1 +MultiInstance=true +AcceptSocketConnections=true [LookupServer] Socket=/tmp/portal/lookup SocketPermissions=660 Priority=low -KeepAlive=1 +KeepAlive=true User=lookup SystemModes=text,graphical,self-test [DHCPClient] Priority=low -KeepAlive=1 +KeepAlive=true User=root SystemModes=text,graphical,self-test [NotificationServer] Socket=/tmp/portal/notify SocketPermissions=600 -Lazy=1 +Lazy=true Priority=low -KeepAlive=1 +KeepAlive=true User=anon [LaunchServer] Socket=/tmp/portal/launch SocketPermissions=600 -Lazy=1 +Lazy=true User=anon SystemModes=text,graphical @@ -84,13 +84,13 @@ SystemModes=text,graphical Socket=/tmp/portal/window,/tmp/portal/wm SocketPermissions=660 Priority=high -KeepAlive=1 +KeepAlive=true User=window [InspectorServer] Socket=/tmp/portal/inspector,/tmp/portal/inspectables SocketPermissions=600,666 -KeepAlive=1 +KeepAlive=true User=anon [Clipboard] @@ -103,7 +103,7 @@ User=anon # TODO: It would be nice to make this lazy, but Audio.Applet connects to it immediately on startup anyway. Socket=/tmp/portal/audio Priority=high -KeepAlive=1 +KeepAlive=true User=anon SystemModes=text,graphical @@ -111,45 +111,45 @@ SystemModes=text,graphical Executable=/bin/Shell StdIO=/dev/tty0 Environment=TERM=xterm -KeepAlive=1 +KeepAlive=true SystemModes=text [Shell@tty1] Executable=/bin/Shell StdIO=/dev/tty1 Environment=TERM=xterm -KeepAlive=1 +KeepAlive=true SystemModes=text [CppLanguageServer] Socket=/tmp/portal/language/cpp SocketPermissions=600 -Lazy=1 +Lazy=true User=anon -MultiInstance=1 -AcceptSocketConnections=1 +MultiInstance=true +AcceptSocketConnections=true [ShellLanguageServer] Socket=/tmp/portal/language/shell SocketPermissions=600 -Lazy=1 +Lazy=true User=anon -MultiInstance=1 -AcceptSocketConnections=1 +MultiInstance=true +AcceptSocketConnections=true [SQLServer] Socket=/tmp/portal/sql SocketPermissions=600 Priority=low -Lazy=1 +Lazy=true User=anon [CrashDaemon] -KeepAlive=1 +KeepAlive=true User=anon [KeyboardPreferenceLoader] -KeepAlive=0 +KeepAlive=false User=anon [TestRunner@ttyS0] @@ -169,7 +169,7 @@ WorkingDirectory=/root/ SystemModes=generate-manpages [SpiceAgent] -KeepAlive=0 +KeepAlive=false [LoginServer] User=root diff --git a/Base/etc/WindowServer.ini b/Base/etc/WindowServer.ini index 8a228c33558..1cd11cfeb60 100644 --- a/Base/etc/WindowServer.ini +++ b/Base/etc/WindowServer.ini @@ -20,7 +20,7 @@ Name=Default AccelerationFactor=1.0 ScrollStepSize=4 CursorTheme=Default -ButtonsSwitched=0 +ButtonsSwitched=false [Graphics] OverlayRectShadow=/res/graphics/overlay-rect-shadow.png diff --git a/Base/home/anon/.config/FileManager.ini b/Base/home/anon/.config/FileManager.ini index d0853b18909..8305c32273b 100644 --- a/Base/home/anon/.config/FileManager.ini +++ b/Base/home/anon/.config/FileManager.ini @@ -1,6 +1,6 @@ [DirectoryView] ViewMode=Icon -ShowDotFiles=0 +ShowDotFiles=false [Window] Left=150 @@ -9,7 +9,7 @@ Width=640 Height=480 [Layout] -ShowToolbar=1 -ShowStatusBar=1 -ShowLocationBar=1 -ShowFolderPane=1 +ShowToolbar=true +ShowStatusBar=true +ShowLocationBar=true +ShowFolderPane=true diff --git a/Base/home/anon/.config/PixelPaint.ini b/Base/home/anon/.config/PixelPaint.ini index e650e726429..7e9e36de456 100644 --- a/Base/home/anon/.config/PixelPaint.ini +++ b/Base/home/anon/.config/PixelPaint.ini @@ -1,9 +1,9 @@ [PixelGrid] Threshold=15 -Show=1 +Show=true [Rulers] -Show=1 +Show=true [Guides] -Show=1 \ No newline at end of file +Show=true diff --git a/Base/home/anon/.config/SystemServer.ini b/Base/home/anon/.config/SystemServer.ini index 98bf14c7e3a..941f051c2c8 100644 --- a/Base/home/anon/.config/SystemServer.ini +++ b/Base/home/anon/.config/SystemServer.ini @@ -1,32 +1,32 @@ [DesktopPicker.Applet] Priority=low -KeepAlive=1 +KeepAlive=true [ResourceGraph.Applet] Arguments=--cpu=CPUGraph,#00bb00 --memory=MemoryGraph,#00bbbb Priority=low -KeepAlive=1 +KeepAlive=true [Audio.Applet] Priority=low -KeepAlive=1 +KeepAlive=true [Network.Applet] Arguments=--name=Network Priority=low -KeepAlive=1 +KeepAlive=true [ClipboardHistory.Applet] Priority=low -KeepAlive=1 +KeepAlive=true [Taskbar] -KeepAlive=1 +KeepAlive=true [Desktop] Executable=/bin/FileManager Arguments=--desktop -KeepAlive=1 +KeepAlive=true [Terminal] WorkingDirectory=/home/anon diff --git a/Base/home/anon/.config/TextEditor.ini b/Base/home/anon/.config/TextEditor.ini index e45dc6dea11..376c3657f63 100644 --- a/Base/home/anon/.config/TextEditor.ini +++ b/Base/home/anon/.config/TextEditor.ini @@ -1,4 +1,4 @@ [Layout] -ShowRuler=1 -ShowToolbar=1 -ShowStatusBar=1 +ShowRuler=true +ShowToolbar=true +ShowStatusBar=true diff --git a/Userland/Libraries/LibCore/ConfigFile.cpp b/Userland/Libraries/LibCore/ConfigFile.cpp index e272a2b26a9..525d215494b 100644 --- a/Userland/Libraries/LibCore/ConfigFile.cpp +++ b/Userland/Libraries/LibCore/ConfigFile.cpp @@ -134,10 +134,8 @@ int ConfigFile::read_num_entry(String const& group, String const& key, int defau bool ConfigFile::read_bool_entry(String const& group, String const& key, bool default_value) const { - auto value = read_entry(group, key, default_value ? "1" : "0"); - if (value == "1" || value.to_lowercase() == "true") - return 1; - return 0; + auto value = read_entry(group, key, default_value ? "true" : "false"); + return value == "1" || value.equals_ignoring_case("true"sv); } void ConfigFile::write_entry(String const& group, String const& key, String const& value) @@ -152,7 +150,7 @@ void ConfigFile::write_num_entry(String const& group, String const& key, int val } void ConfigFile::write_bool_entry(String const& group, String const& key, bool value) { - write_entry(group, key, value ? "1" : "0"); + write_entry(group, key, value ? "true" : "false"); } void ConfigFile::write_color_entry(String const& group, String const& key, Color value) {