summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-07 17:15:59 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-07 17:15:59 +0100
commita738b5cb699d506331b082e0b68de14898f23056 (patch)
tree805178edd536441f21873886b279b614bd9621dc /Kernel
parentf8b72ab3ab1616242b56b8ac42c11f4d8217aca1 (diff)
downloadserenity-a738b5cb699d506331b082e0b68de14898f23056.zip
TextEditor: Open an empty document by default.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/init.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index b0d38a9c47..f55caa81b8 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -104,7 +104,10 @@ VFS* vfs;
Process::create_user_process("/bin/ProcessManager", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0);
#endif
#ifdef SPAWN_TEXT_EDITOR
- Process::create_user_process("/bin/TextEditor", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, { }, tty0);
+ Vector<String> text_editor_arguments;
+ text_editor_arguments.append("/bin/TextEditor");
+ text_editor_arguments.append("/home/anon/ReadMe.md");
+ Process::create_user_process("/bin/TextEditor", (uid_t)100, (gid_t)100, (pid_t)0, error, move(text_editor_arguments), { }, tty0);
#endif
#ifdef SPAWN_FONTEDITOR
Process::create_user_process("/bin/FontEditor", (uid_t)100, (gid_t)100, (pid_t)0, error, { }, move(environment), tty0);