parent
3e420b7590
commit
f9167c9265
Notes:
sideshowbarker
2024-07-18 01:29:28 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/f9167c92655 Pull-request: https://github.com/SerenityOS/serenity/pull/10793 Issue: https://github.com/SerenityOS/serenity/issues/10640
8 changed files with 58 additions and 60 deletions
|
@ -1,3 +1,3 @@
|
|||
[DNS]
|
||||
Nameservers=1.1.1.1,1.0.0.1
|
||||
EnableServer=0
|
||||
EnableServer=false
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[PixelGrid]
|
||||
Threshold=15
|
||||
Show=1
|
||||
Show=true
|
||||
|
||||
[Rulers]
|
||||
Show=1
|
||||
Show=true
|
||||
|
||||
[Guides]
|
||||
Show=1
|
||||
Show=true
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[Layout]
|
||||
ShowRuler=1
|
||||
ShowToolbar=1
|
||||
ShowStatusBar=1
|
||||
ShowRuler=true
|
||||
ShowToolbar=true
|
||||
ShowStatusBar=true
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue